Merge pull request #1492 from cm-schl/master

Update plugin ldap-mail-accounts: use SensitiveString for passwords
This commit is contained in:
Maarten 2024-03-15 00:59:42 +01:00 committed by GitHub
commit a0e7bf790e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -208,7 +208,7 @@ class LdapMailAccounts
{
//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);