From a0576dba1f60b3fb21e152b9e821924b4f1a004e Mon Sep 17 00:00:00 2001 From: cm-schl <63400209+cm-schl@users.noreply.github.com> Date: Wed, 13 Mar 2024 17:16:48 +0100 Subject: [PATCH] use SensitiveString for passwords uses the new SensitiveString class introduced with Snappymail v2.30.0 --- plugins/ldap-mail-accounts/LdapMailAccounts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);