mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
修复一堆错误
This commit is contained in:
1 parent
2d3cee7753
commit
b5e3b81c17
23 files changed
+120
-159
No files matched your search
+1
-1
@@ -98,7 +98,7 @@ async function getByEmail(domainId, mail, ignoreMissing = false) {
|
||||
function setPassword(uid, password) {
|
||||
const salt = String.random();
|
||||
return coll.findOneAndUpdate({ _id: uid }, {
|
||||
$set: { salt, hash: pwhash.hash(password, salt), hashType: 'hydro' },
|
||||
$set: { salt, hash: pwhash(password, salt), hashType: 'hydro' },
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user