From 3b1a87f9a77b83025adbd4ab903ec5acc3c4afcd Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 7 Dec 2020 08:07:41 +0100 Subject: [PATCH] [Web] Accept raw SSHA hashes as passwords --- data/web/inc/functions.mailbox.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/web/inc/functions.mailbox.inc.php b/data/web/inc/functions.mailbox.inc.php index 603c5a8c..17829562 100644 --- a/data/web/inc/functions.mailbox.inc.php +++ b/data/web/inc/functions.mailbox.inc.php @@ -1055,7 +1055,7 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) { return false; } // support pre hashed passwords - if(preg_match('/^{SSHA256}|{SHA512-CRYPT}|{SSHA512}|{MD5-CRYPT}|{PLAIN-MD5}/i', $password)) { + if(preg_match('/^{SSHA256}|{SSHA}|{SHA512-CRYPT}|{SSHA512}|{MD5-CRYPT}|{PLAIN-MD5}/i', $password)) { $password_hashed = $password; } else { $password_hashed = hash_password($password);