mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-26 13:35:56 +00:00
syntax error
This commit is contained in:
parent
0eb0c351ee
commit
304d47ea3b
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ exports.generate = function (password) {
|
|||
*/
|
||||
exports.verify = function (password, hash) {
|
||||
let match;
|
||||
match = isSHA1(hash) ? passwordHashOld.verify(password, hash) : bcrypt.compareSync(password, hash);
|
||||
match = isSHA1(hash) ? passwordHashOld.verify(password, hash) : bcrypt.compareSync(password, hash);
|
||||
return match;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue