From 7f4159ac258c501f9666efc465a78cb2aec9d177 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Mon, 21 Sep 2020 21:21:30 +0200 Subject: Code cleanup - Remove unused variables - Remove unused utility functions - Asserting presence and typehinting global variables - Remove unused variables - Add missing global - Add parameter type constraint - Fix some references to nonexisting variables --- ratatoeskr/sys/pwhash.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ratatoeskr/sys/pwhash.php') diff --git a/ratatoeskr/sys/pwhash.php b/ratatoeskr/sys/pwhash.php index 3d3c589..f52ae03 100644 --- a/ratatoeskr/sys/pwhash.php +++ b/ratatoeskr/sys/pwhash.php @@ -70,7 +70,7 @@ class PasswordHash */ public static function validate($password, $pwhash) { - list($iterations, $hexsalt, $hash) = explode('$', $pwhash); + list($iterations, $hexsalt) = explode('$', $pwhash); return self::hash($password, pack("H*", $hexsalt), $iterations) == $pwhash; } } -- cgit v1.2.3-70-g09d2