mirror of
https://github.com/LucasVbr/meeting-app.git
synced 2026-07-09 15:08:06 +00:00
Edit Crud, add loaders during authentication
Took 2 hours 49 minutes
This commit is contained in:
@@ -6,7 +6,7 @@ export async function hashPassword(unHashedPassword: string): Promise<string> {
|
||||
|
||||
export async function isSamePassword(
|
||||
unHashedPassword: string,
|
||||
hashedPassword: string
|
||||
hashedPassword: string,
|
||||
): Promise<boolean> {
|
||||
return await bcrypt.compare(unHashedPassword, hashedPassword).
|
||||
then((result: boolean) => result);
|
||||
|
||||
Reference in New Issue
Block a user