Skip to content
Snippets Groups Projects
Commit db1083d6 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Merge pull request #1136 from tled/bcrypt_hash

mysqlauth: bcrypt hash is indicated by 2a or 2y
parents af865bf3 99a5b03f
No related branches found
No related tags found
No related merge requests found
......@@ -50,7 +50,7 @@ class PassHash {
} elseif(preg_match('/^md5\$(.{5})\$/', $hash, $m)) {
$method = 'djangomd5';
$salt = $m[1];
} elseif(preg_match('/^\$2a\$(.{2})\$/', $hash, $m)) {
} elseif(preg_match('/^\$2(a|y)\$(.{2})\$/', $hash, $m)) {
$method = 'bcrypt';
$salt = $hash;
} elseif(substr($hash, 0, 6) == '{SSHA}') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment