Skip to content

Commit

Permalink
Merge pull request #1492 from cm-schl/master
Browse files Browse the repository at this point in the history
Update plugin ldap-mail-accounts: use SensitiveString for passwords
  • Loading branch information
the-djmaze authored Mar 14, 2024
2 parents df0787d + a0576db commit a0e7bf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/ldap-mail-accounts/LdapMailAccounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a0e7bf7

Please sign in to comment.