From adc300d63673775e9e734b1b66f26af891db0920 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Tue, 24 Oct 2023 00:51:32 +0200 Subject: [PATCH] Resolve #1241 --- snappymail/v/0.0.0/app/libraries/RainLoop/Actions/User.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/User.php b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/User.php index 6543aec53..cf1a71774 100644 --- a/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/User.php +++ b/snappymail/v/0.0.0/app/libraries/RainLoop/Actions/User.php @@ -46,11 +46,12 @@ trait User throw $oException; } + // Must be here due to bug #1241 + $this->Plugins()->RunHook('login.success', array($oAccount)); + $this->SetAuthToken($oAccount); empty($this->GetActionParam('signMe', 0)) || $this->SetSignMeToken($oAccount); - $this->Plugins()->RunHook('login.success', array($oAccount)); - $sLanguage = $this->GetActionParam('language', ''); if ($oAccount && $sLanguage) { $oSettings = $this->SettingsProvider()->Load($oAccount);