mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-27 19:19:21 +03:00
plugins/postfixadmin-change-password: Add "ARGON2I"
My mail server was set up with `dovecot:ARGON2I` password encryption option. This allows people who set up argon2i as the encryption method to continue using it when users change their password with the plugin.
This commit is contained in:
parent
ad9d153d76
commit
3dbb43e188
1 changed files with 4 additions and 0 deletions
|
|
@ -319,6 +319,10 @@ class ChangePasswordPostfixAdminDriver implements \RainLoop\Providers\ChangePass
|
|||
case 'sha512-crypt':
|
||||
$sResult = '{SHA512-CRYPT}' . crypt($sPassword,'$6$'.$sSalt);
|
||||
break;
|
||||
|
||||
case 'argon2i':
|
||||
$sResult = '{ARGON2I}' . password_hash($sPassword, PASSWORD_ARGON2I);
|
||||
break;
|
||||
|
||||
case 'mysql_encrypt':
|
||||
if($this->sEngine == 'MySQL'){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue