From 9988463e2d77eb91cac40ceead757b7a12d364a0 Mon Sep 17 00:00:00 2001 From: Valdur Kana Date: Sat, 14 Jan 2017 00:03:41 +0200 Subject: [PATCH] Add other missing {type} before hash --- .../ChangePasswordPostfixAdminDriver.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/postfixadmin-change-password/ChangePasswordPostfixAdminDriver.php b/plugins/postfixadmin-change-password/ChangePasswordPostfixAdminDriver.php index cc7777f4b..7c72af236 100755 --- a/plugins/postfixadmin-change-password/ChangePasswordPostfixAdminDriver.php +++ b/plugins/postfixadmin-change-password/ChangePasswordPostfixAdminDriver.php @@ -264,12 +264,12 @@ class ChangePasswordPostfixAdminDriver implements \RainLoop\Providers\ChangePass default: case 'plain': case 'cleartext': - $sResult = $sPassword; + $sResult = '{PLAIN}' . $sPassword; break; case 'md5crypt': include_once __DIR__.'/md5crypt.php'; - $sResult = md5crypt($sPassword); + $sResult = '{MD5-CRYPT}' . md5crypt($sPassword); break; case 'md5': @@ -277,7 +277,7 @@ class ChangePasswordPostfixAdminDriver implements \RainLoop\Providers\ChangePass break; case 'system': - $sResult = crypt($sPassword); + $sResult = '{CRYPT}' . crypt($sPassword); break; case 'sha256-crypt':