mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-03 10:30:51 +08:00
Merge pull request #786 from lithromantic/master
Add sha256salt hashing option in password verification
This commit is contained in:
@@ -86,6 +86,7 @@ class Helper
|
|||||||
case 'md5': return md5($password) === $hash;
|
case 'md5': return md5($password) === $hash;
|
||||||
case 'sha256': return hash('sha256', $password) === $hash;
|
case 'sha256': return hash('sha256', $password) === $hash;
|
||||||
case 'md5salt': return md5($password . $salt) === $hash;
|
case 'md5salt': return md5($password . $salt) === $hash;
|
||||||
|
case 'sha256salt': return hash('sha256', $password . $salt) === $hash;
|
||||||
default: return password_verify($password, $hash);
|
default: return password_verify($password, $hash);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user