修复一堆错误

This commit is contained in:
undefined committed 2020-06-20 13:32:53 +08:00
1 parent 2d3cee7753
commit b5e3b81c17
23 files changed
+120 -159

No files matched your search

-1
View File
@@ -186,7 +186,6 @@ const oi = {
rank: (tdocs) => ranked(tdocs, (a, b) => a.score === b.score),
};
const RULES = {
acm, oi,
};
+1 -1
View File
@@ -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' },
});
}