aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/crypto/driver
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2013-07-19 20:14:25 +0200
committerMarc Alexander <admin@m-a-styles.de>2013-09-14 13:55:23 +0200
commit2e453eb2cb682031d7e521d23c3904c8dfeef70c (patch)
tree84b5e5c752b2a5c6bca135925bf4aec1bea6f1c7 /phpBB/includes/crypto/driver
parentbd4664807fad02819fb680f827fb1a4411364911 (diff)
downloadforums-2e453eb2cb682031d7e521d23c3904c8dfeef70c.tar
forums-2e453eb2cb682031d7e521d23c3904c8dfeef70c.tar.gz
forums-2e453eb2cb682031d7e521d23c3904c8dfeef70c.tar.bz2
forums-2e453eb2cb682031d7e521d23c3904c8dfeef70c.tar.xz
forums-2e453eb2cb682031d7e521d23c3904c8dfeef70c.zip
[feature/passwords] Add legacy support for md5 passwords
PHPBB3-11610
Diffstat (limited to 'phpBB/includes/crypto/driver')
-rw-r--r--phpBB/includes/crypto/driver/salted_md5.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/crypto/driver/salted_md5.php b/phpBB/includes/crypto/driver/salted_md5.php
index 76bbdccbc4..c5a8345453 100644
--- a/phpBB/includes/crypto/driver/salted_md5.php
+++ b/phpBB/includes/crypto/driver/salted_md5.php
@@ -82,9 +82,9 @@ class phpbb_crypto_driver_salted_md5 extends phpbb_crypto_driver_base
*/
public function check($password, $hash)
{
- if (strlen($hash) != 34)
+ if (strlen($hash) !== 34)
{
- return false;
+ return (md5($password) === $hash) ? true : false;
}
// No need to check prefix, already did that in manage