mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
move login.success hook
This commit is contained in:
parent
e112d1fd70
commit
ae9bb29a47
2 changed files with 1 additions and 2 deletions
|
|
@ -1513,8 +1513,6 @@ class Actions
|
|||
if (!$oAccount) {
|
||||
throw new Exceptions\ClientException(Notifications::AuthError);
|
||||
}
|
||||
|
||||
$this->Plugins()->RunHook('login.success', array($oAccount));
|
||||
} catch (\Throwable $oException) {
|
||||
$this->loginErrorDelay();
|
||||
$this->LoggerAuthHelper($oAccount, $this->getAdditionalLogParamsByUserLogin($sInputEmail));
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ trait User
|
|||
{
|
||||
$oAccount = $this->LoginProcess($sEmail, $sPassword,
|
||||
$bSignMe ? $this->generateSignMeToken($sEmail) : '');
|
||||
$this->Plugins()->RunHook('login.success', array($oAccount));
|
||||
}
|
||||
catch (ClientException $oException)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue