diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-09-21 21:21:30 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-09-21 21:30:57 +0200 |
commit | 7f4159ac258c501f9666efc465a78cb2aec9d177 (patch) | |
tree | 298b4943fb5cd7ecf5f6959bf1b6f47fbc6e557a /ratatoeskr/sys/pwhash.php | |
parent | 9834bfc4dc7f0bbf4020cebb43b03069592bc687 (diff) | |
download | ratatoeskr-cms-7f4159ac258c501f9666efc465a78cb2aec9d177.tar.gz ratatoeskr-cms-7f4159ac258c501f9666efc465a78cb2aec9d177.tar.bz2 ratatoeskr-cms-7f4159ac258c501f9666efc465a78cb2aec9d177.zip |
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
Diffstat (limited to 'ratatoeskr/sys/pwhash.php')
-rw-r--r-- | ratatoeskr/sys/pwhash.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; } } |