Add base admin interface
This commit is contained in:
1 parent
d769c3943c
commit
388ff394c7
25 files changed
+905
-24
No files matched your search
+11
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user