PHPackages                             icybee/module-users-logins - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. icybee/module-users-logins

ActiveIcanboogie-module[Authentication &amp; Authorization](/categories/authentication)

icybee/module-users-logins
==========================

Record users login times and IPs

1.0.x-dev(12y ago)014BSD-3-ClausePHPPHP &gt;=5.3.0

Since Jul 24Pushed 12y ago2 watchersCompare

[ Source](https://github.com/Icybee/module-users-logins)[ Packagist](https://packagist.org/packages/icybee/module-users-logins)[ RSS](/packages/icybee-module-users-logins/feed)WikiDiscussions 1.0 Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

Users logins
============

[](#users-logins)

The Users logins module (`users.logins`) records users login times and IPs.

Event hooks
-----------

[](#event-hooks)

### `Icybee\Modules\Users\DeleteOperation::process:before`

[](#icybeemodulesusersdeleteoperationprocessbefore)

An event hook is attache to the `process:before` event of `Icybee\Modules\Users\DeleteOperation`instances to delete the records associate with a user, before the user is deleted.

### `Icybee\Modules\Users\LoginOperation::process`

[](#icybeemodulesusersloginoperationprocess)

An event hook is attached to the `process` event of `Icybee\Modules\Users\LoginOperation` instances to record the time and IP of the user loggin in.

Prototype methods
-----------------

[](#prototype-methods)

The following prototype methods are added to the user object (`Icybee\Modules\Users\User`).

### `get_last_login_times`

[](#get_last_login_times)

Returns the last five login times for a user:

```
