Skip to content

Commit 7879a9e

Browse files
authored
Merge pull request #786 from lithromantic/master
Add sha256salt hashing option in password verification
2 parents d6a3614 + 6cac241 commit 7879a9e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/Utils/Helper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public static function multiPasswordVerify($algo, $salt, $password, $hash)
8686
case 'md5': return md5($password) === $hash;
8787
case 'sha256': return hash('sha256', $password) === $hash;
8888
case 'md5salt': return md5($password . $salt) === $hash;
89+
case 'sha256salt': return hash('sha256', $password . $salt) === $hash;
8990
default: return password_verify($password, $hash);
9091
}
9192
}

0 commit comments

Comments
 (0)