mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +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) {
|
if (!$oAccount) {
|
||||||
throw new Exceptions\ClientException(Notifications::AuthError);
|
throw new Exceptions\ClientException(Notifications::AuthError);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->Plugins()->RunHook('login.success', array($oAccount));
|
|
||||||
} catch (\Throwable $oException) {
|
} catch (\Throwable $oException) {
|
||||||
$this->loginErrorDelay();
|
$this->loginErrorDelay();
|
||||||
$this->LoggerAuthHelper($oAccount, $this->getAdditionalLogParamsByUserLogin($sInputEmail));
|
$this->LoggerAuthHelper($oAccount, $this->getAdditionalLogParamsByUserLogin($sInputEmail));
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,7 @@ trait User
|
||||||
{
|
{
|
||||||
$oAccount = $this->LoginProcess($sEmail, $sPassword,
|
$oAccount = $this->LoginProcess($sEmail, $sPassword,
|
||||||
$bSignMe ? $this->generateSignMeToken($sEmail) : '');
|
$bSignMe ? $this->generateSignMeToken($sEmail) : '');
|
||||||
|
$this->Plugins()->RunHook('login.success', array($oAccount));
|
||||||
}
|
}
|
||||||
catch (ClientException $oException)
|
catch (ClientException $oException)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue