mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Resolve #1241
This commit is contained in:
parent
26b7abf893
commit
edad4ac025
4 changed files with 11 additions and 10 deletions
|
|
@ -82,11 +82,11 @@ class SnappyMailHelper
|
|||
$oActions->Logger()->AddSecret($aCredentials[2]);
|
||||
$oAccount = $oActions->LoginProcess($aCredentials[1], $aCredentials[2]);
|
||||
if ($oAccount) {
|
||||
$oActions->Plugins()->RunHook('login.success', array($oAccount));
|
||||
$oActions->SetAuthToken($oAccount);
|
||||
if ($oConfig->Get('login', 'sign_me_auto', \RainLoop\Enumerations\SignMeType::DEFAULT_OFF) === \RainLoop\Enumerations\SignMeType::DEFAULT_ON) {
|
||||
$oActions->SetSignMeToken($oAccount);
|
||||
}
|
||||
$oActions->Plugins()->RunHook('login.success', array($oAccount));
|
||||
}
|
||||
} catch (\Throwable $e) {
|
||||
// Login failure, reset password to prevent more attempts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue