Account editing and change password.

This commit is contained in:
Mike Cao committed 2020-08-09 02:03:37 -07:00
1 parent b5cf9f8719
commit b392a51676
23 files changed
+230 -102

No files matched your search

+2 -2
View File
@@ -24,11 +24,11 @@ export function isValidId(s) {
return validate(s);
}
export function hashPassword(password) {
export async function hashPassword(password) {
return bcrypt.hash(password, SALT_ROUNDS);
}
export function checkPassword(password, hash) {
export async function checkPassword(password, hash) {
return bcrypt.compare(password, hash);
}