Merge pull request #1796 from filipac/patch-1
Add a new event on login - backend.user.login
This commit is contained in:
commit
48148cfcd0
|
|
@ -3,6 +3,7 @@
|
|||
use Mail;
|
||||
use Backend;
|
||||
use October\Rain\Auth\Models\User as UserBase;
|
||||
use Event;
|
||||
|
||||
/**
|
||||
* Administrator user model
|
||||
|
|
@ -107,6 +108,12 @@ class User extends UserBase
|
|||
$this->sendInvitation();
|
||||
}
|
||||
}
|
||||
|
||||
public function afterLogin()
|
||||
{
|
||||
Event::fire('backend.user.login', [$this]);
|
||||
parent::afterLogin();
|
||||
}
|
||||
|
||||
public function sendInvitation()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue