Edit Crud, add loaders during authentication

Took 2 hours 49 minutes
This commit is contained in:
Lucàs
2023-03-26 17:02:24 +02:00
parent 668e092dd3
commit 5cc56e46ec
16 changed files with 3319 additions and 154 deletions
+1 -1
View File
@@ -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);