summaryrefslogtreecommitdiff
path: root/inc/PassHash.class.php
diff options
context:
space:
mode:
authorTLed <tled@ledderboge.de>2015-05-06 22:53:43 +0200
committertled <tled@ledderboge.de>2015-05-06 22:57:33 +0200
commit99a5b03f106be4dd58ea09dd0613e4a496f9c06a (patch)
tree43c530a5b0b0072fa8f59bff962f4ce5e1f35ecb /inc/PassHash.class.php
parent15e0e2356bfd266851932e1cde1287da7c5e201a (diff)
downloadrpg-99a5b03f106be4dd58ea09dd0613e4a496f9c06a.tar.gz
rpg-99a5b03f106be4dd58ea09dd0613e4a496f9c06a.tar.bz2
2y is also used for bcryt
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}') {