summaryrefslogtreecommitdiff
path: root/inc/PassHash.class.php
diff options
context:
space:
mode:
authorPatrick Brown <ptbrown@whoopdedo.org>2015-05-07 21:10:22 -0400
committerPatrick Brown <ptbrown@whoopdedo.org>2015-05-07 21:10:22 -0400
commitd0d224a82eddf30aa6daead4796cb10dd0466767 (patch)
treed04692b0379451db55b7dc556dee7be7846d3cc8 /inc/PassHash.class.php
parent699e3c4900f2d6cc860a3587a05798cd23b7944d (diff)
parentcffb4528cea1b9e7e03dc724aaa9719dbd6e23c9 (diff)
downloadrpg-d0d224a82eddf30aa6daead4796cb10dd0466767.tar.gz
rpg-d0d224a82eddf30aa6daead4796cb10dd0466767.tar.bz2
Merge branch 'master' into ioreplaceinfile
Diffstat (limited to 'inc/PassHash.class.php')
-rw-r--r--inc/PassHash.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/PassHash.class.php b/inc/PassHash.class.php
index 15f896dcf..0701c4116 100644
--- a/inc/PassHash.class.php
+++ b/inc/PassHash.class.php
@@ -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}') {