Add base admin interface

This commit is contained in:
Bailey Pumfleet committed 2021-03-24 15:03:04 +00:00
1 parent d769c3943c
commit 388ff394c7
25 files changed
+905 -24

No files matched your search

+11
View File
@@ -0,0 +1,11 @@
import { hash, compare } from 'bcryptjs';
export async function hashPassword(password) {
const hashedPassword = await hash(password, 12);
return hashedPassword;
}
export async function verifyPassword(password, hashedPassword) {
const isValid = await compare(password, hashedPassword);
return isValid;
}