diff options
Diffstat (limited to 'phpBB/includes/crypto/driver')
| -rw-r--r-- | phpBB/includes/crypto/driver/salted_md5.php | 4 | 
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 | 
