import without pid check, fix bulk, upgrade dep

This commit is contained in:
undefined committed 2020-08-13 12:34:43 +08:00
1 parent ac9dc00c6a
commit 76f105c4c8
14 files changed
+117 -193

No files matched your search

+2 -1
View File
@@ -184,7 +184,7 @@ export async function create(
mailLower: mail.trim().toLowerCase(),
uname,
unameLower: uname.trim().toLowerCase(),
hash: pwhash(password, salt),
hash: pwhash(password.toString(), salt),
salt,
hashType: 'hydro',
regat: new Date(),
@@ -195,6 +195,7 @@ export async function create(
gravatar: mail,
});
} catch (e) {
console.log(e);
throw new UserAlreadyExistError([uid, uname, mail]);
}
return uid;