diff --git a/public/locales/en/common.json b/public/locales/en/common.json
index a47f8e6f..a741b5d3 100644
--- a/public/locales/en/common.json
+++ b/public/locales/en/common.json
@@ -166,7 +166,7 @@
"PLEASE_RESET_YOUR_PASSWORD": "Please reset your password to ensure your account is secure",
"DO_IT_LATER": "I’ll do it later",
"SUCCESSFULLY_RESET": "Your password has been successfully reset",
- "LINK_EXPIRED": "Link Expired",
+ "LINK_EXPIRED": "Link has been expired",
"WE_SEND_AN_EMAIL":"We sent an email to {{maskEmail}} with a link to reset your password",
"CURRENT_PASSWORD_NOT":"Current Password Not Matched",
"NO_USERNAME":"Username not found",
diff --git a/src/pages/reset-password/index.tsx b/src/pages/reset-password/index.tsx
index 3ed1a9a3..60da8931 100644
--- a/src/pages/reset-password/index.tsx
+++ b/src/pages/reset-password/index.tsx
@@ -1,5 +1,5 @@
import React, { useEffect, useState } from 'react';
-import { Box } from '@mui/material';
+import { Box, Divider } from '@mui/material';
import { useTranslation } from 'react-i18next';
import { useTheme } from '@mui/material/styles';
import { serverSideTranslations } from 'next-i18next/serverSideTranslations';
@@ -86,41 +86,61 @@ const ResetPassword = () => {
-
- {t('LOGIN_PAGE.CREATE_STRONG_PASSWORD')}
-
-
- {t('LOGIN_PAGE.CREATE_NEW')}
-
{isTokenValid ? (
-
+ <>
+
+ {t('LOGIN_PAGE.CREATE_STRONG_PASSWORD')}
+
+
+ {t('LOGIN_PAGE.CREATE_NEW')}
+
+
+ >
) : (
-
- {t('LOGIN_PAGE.LINK_EXPIRED')}
-
+ <>
+
+ {t('LOGIN_PAGE.LINK_EXPIRED')}
+
+
+
+
+ {
+ router.push('/login');
+ }}
+ >
+ {t('LOGIN_PAGE.BACK_TO_LOGIN')}
+
+ >
)}
= ({
{t('COMMON.LOADING')}
- )}{' '}
-
-
- {t('LOGIN_PAGE.OTHER_SETTING')}
-
-
-
+ {t('LOGIN_PAGE.OTHER_SETTING')}
+
+
+
+
-
+ ) : null}
);
};
diff --git a/src/services/LoginService.ts b/src/services/LoginService.ts
index c8f6290d..36a85941 100644
--- a/src/services/LoginService.ts
+++ b/src/services/LoginService.ts
@@ -94,7 +94,7 @@ export const successfulNotification = async (
key: any,
email: any
): Promise => {
- const apiUrl: string = `${process.env.NEXT_PUBLIC_NOTIFICATION_BASE_URL}/notification/send'`;
+ const apiUrl: string = `${process.env.NEXT_PUBLIC_NOTIFICATION_BASE_URL}/notification/send`;
try {
const response = await post(apiUrl, { isQueue, context, key, email });
console.log(email);