mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Add other missing {type} before hash
This commit is contained in:
parent
ccc8147f96
commit
9988463e2d
1 changed files with 3 additions and 3 deletions
|
|
@ -264,12 +264,12 @@ class ChangePasswordPostfixAdminDriver implements \RainLoop\Providers\ChangePass
|
||||||
default:
|
default:
|
||||||
case 'plain':
|
case 'plain':
|
||||||
case 'cleartext':
|
case 'cleartext':
|
||||||
$sResult = $sPassword;
|
$sResult = '{PLAIN}' . $sPassword;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'md5crypt':
|
case 'md5crypt':
|
||||||
include_once __DIR__.'/md5crypt.php';
|
include_once __DIR__.'/md5crypt.php';
|
||||||
$sResult = md5crypt($sPassword);
|
$sResult = '{MD5-CRYPT}' . md5crypt($sPassword);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'md5':
|
case 'md5':
|
||||||
|
|
@ -277,7 +277,7 @@ class ChangePasswordPostfixAdminDriver implements \RainLoop\Providers\ChangePass
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'system':
|
case 'system':
|
||||||
$sResult = crypt($sPassword);
|
$sResult = '{CRYPT}' . crypt($sPassword);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'sha256-crypt':
|
case 'sha256-crypt':
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue