From dc7bf9674ab16f8fe5f9dbb6d83feec46c4a863a Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Wed, 29 May 2024 02:00:49 +0800 Subject: [PATCH] misc: minor ui adjustments --- backend/src/services/auth/auth-fns.ts | 2 +- backend/src/services/smtp/templates/unlockAccount.handlebars | 2 +- frontend/src/views/Login/components/MFAStep/MFAStep.tsx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/services/auth/auth-fns.ts b/backend/src/services/auth/auth-fns.ts index 2a322fdea..ecbf73a48 100644 --- a/backend/src/services/auth/auth-fns.ts +++ b/backend/src/services/auth/auth-fns.ts @@ -50,7 +50,7 @@ export const enforceUserLockStatus = (isLocked: boolean, temporaryLockDateEnd?: throw new UnauthorizedError({ name: "User Locked", message: - "User is locked due to multiple failed login attempts. An email has been sent to you in order to unlock your account. You can also reset your password to unlock." + "User is locked due to multiple failed login attempts. An email has been sent to you in order to unlock your account. You can also reset your password to unlock your account." }); } diff --git a/backend/src/services/smtp/templates/unlockAccount.handlebars b/backend/src/services/smtp/templates/unlockAccount.handlebars index cb1859e51..36664be87 100644 --- a/backend/src/services/smtp/templates/unlockAccount.handlebars +++ b/backend/src/services/smtp/templates/unlockAccount.handlebars @@ -9,7 +9,7 @@

Unlock your Infisical account

Your account has been temporarily locked due to multiple failed login attempts. - Unlock your account now + To unlock your account, follow the link here

If these attempts were not made by you, reset your password immediately.

diff --git a/frontend/src/views/Login/components/MFAStep/MFAStep.tsx b/frontend/src/views/Login/components/MFAStep/MFAStep.tsx index bf90b9cab..b23af1cef 100644 --- a/frontend/src/views/Login/components/MFAStep/MFAStep.tsx +++ b/frontend/src/views/Login/components/MFAStep/MFAStep.tsx @@ -5,7 +5,7 @@ import { useRouter } from "next/router"; import axios from "axios"; import jwt_decode from "jwt-decode"; -import Error from "@app/components/basic/Error"; // which to notification +import Error from "@app/components/basic/Error"; import { createNotification } from "@app/components/notifications"; import attemptCliLoginMfa from "@app/components/utilities/attemptCliLoginMfa"; import attemptLoginMfa from "@app/components/utilities/attemptLoginMfa"; @@ -234,7 +234,7 @@ export const MFAStep = ({ email, password, providerAuthToken }: Props) => { /> {typeof triesLeft === "number" && ( - + )}