mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-12 11:36:48 +01:00
@@ -152,7 +152,7 @@ define('SALT_LENGTH',12);
|
||||
// Generate hash
|
||||
function generateHash($pw) {
|
||||
// Generate Bcrypt hash
|
||||
return str_replace("\$", "\\$", password_hash($pw, PASSWORD_BCRYPT, $options = ['cost' => 10]));
|
||||
return password_hash($pw, PASSWORD_BCRYPT, $options = ['cost' => 10]);
|
||||
}
|
||||
|
||||
// Verify hash
|
||||
|
||||
Reference in New Issue
Block a user