diff --git a/plugins/ldap-mail-accounts/LdapMailAccounts.php b/plugins/ldap-mail-accounts/LdapMailAccounts.php index 3e0378ea29..2f93dbd140 100644 --- a/plugins/ldap-mail-accounts/LdapMailAccounts.php +++ b/plugins/ldap-mail-accounts/LdapMailAccounts.php @@ -208,7 +208,7 @@ public function AddLdapMailAccounts(MainAccount $oAccount): bool { //Try to login the user with the same password as the primary account has //if this fails the user will see the new mail addresses but will be asked for the correct password - $sPass = $oAccount->IncPassword(); + $sPass = new \SnappyMail\SensitiveString($oAccount->IncPassword()); //After creating the accounts here $sUsername is used as username to login to the IMAP server (see Account.php) $oNewAccount = RainLoop\Model\AdditionalAccount::NewInstanceFromCredentials($oActions, $sEmail, $sUsername, $sPass);