use SensitiveString for passwords

uses the new SensitiveString class introduced with Snappymail v2.30.0
This commit is contained in:
cm-schl 2024-03-13 17:16:48 +01:00 committed by GitHub
parent e04cc1080a
commit a0576dba1f
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 //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 //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) //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); $oNewAccount = RainLoop\Model\AdditionalAccount::NewInstanceFromCredentials($oActions, $sEmail, $sUsername, $sPass);