move login.success hook

This commit is contained in:
djmaze 2021-04-14 15:25:50 +02:00
parent e112d1fd70
commit ae9bb29a47
2 changed files with 1 additions and 2 deletions

View file

@ -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));

View file

@ -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)
{ {