Loading lib/Listeners/BeforeTemplateRenderedListener.php +0 −7 Original line number Diff line number Diff line Loading @@ -65,13 +65,6 @@ class BeforeTemplateRenderedListener implements IEventListener { return; } // Just send over '1' as password to trigger login as the plugin will set the correct access token $password = self::SNAPPYMAIL_AUTOLOGIN_PWD; // As we cannot pass by reference to LoginProcess $account = $actions->LoginProcess($accountId, $password, false); if ($account) { $actions->Plugins()->RunHook('login.success', array($account)); $actions->SetAuthToken($account); } } private function getAccountId(): string { Loading Loading
lib/Listeners/BeforeTemplateRenderedListener.php +0 −7 Original line number Diff line number Diff line Loading @@ -65,13 +65,6 @@ class BeforeTemplateRenderedListener implements IEventListener { return; } // Just send over '1' as password to trigger login as the plugin will set the correct access token $password = self::SNAPPYMAIL_AUTOLOGIN_PWD; // As we cannot pass by reference to LoginProcess $account = $actions->LoginProcess($accountId, $password, false); if ($account) { $actions->Plugins()->RunHook('login.success', array($account)); $actions->SetAuthToken($account); } } private function getAccountId(): string { Loading