diff --git a/lib/Listeners/BeforeTemplateRenderedListener.php b/lib/Listeners/BeforeTemplateRenderedListener.php index adece9c3c691e046cc4b562afef4d6accca6be81..c256529f84551b4cf6bc8fe4e1b2baa52b83c2e5 100644 --- a/lib/Listeners/BeforeTemplateRenderedListener.php +++ b/lib/Listeners/BeforeTemplateRenderedListener.php @@ -67,7 +67,9 @@ class BeforeTemplateRenderedListener implements IEventListener { // 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); + $oPasswordSensitive = new \SnappyMail\SensitiveString($password); + + $account = $actions->LoginProcess($accountId, $oPasswordSensitive, false); if ($account) { $actions->Plugins()->RunHook('login.success', array($account)); $actions->SetAuthToken($account);