diff --git a/data/web/inc/functions.inc.php b/data/web/inc/functions.inc.php index 6804fec0..94eada4f 100644 --- a/data/web/inc/functions.inc.php +++ b/data/web/inc/functions.inc.php @@ -266,6 +266,12 @@ function verify_hash($hash, $password) { return true; } } + elseif (preg_match('/^{MD5-CRYPT}/i', $hash)) { + $hash = preg_replace('/^{MD5-CRYPT}/i', '', $hash); + if (password_verify($password, $hash)) { + return true; + } + } return false; } function check_login($user, $pass) {