feat: integration user lock flow to frontend

This commit is contained in:
Sheen Capadngan
2024-05-22 22:51:20 +08:00
parent 41d72d5dc6
commit e3dae9d498
5 changed files with 34 additions and 25 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ export const enforceUserLockStatus = (isLocked: boolean, temporaryLockDateEnd?:
if (timeDiff < 0)
throw new UnauthorizedError({
name: "User Locked",
message: `User is locked due to multiple failed login attempts. Try logging in again after ${Math.round(
message: `User is locked due to multiple failed login attempts. Try again after ${Math.round(
(-1 * timeDiff) / 1000
)} seconds.`
});