From 874276dcba202b97d66d70a97bfab57737a4afdd Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Sat, 5 Aug 2023 16:35:23 +0100 Subject: [PATCH 1/2] reset pwd icons added --- src/assets/images/icons/error.svg | 1 + src/assets/images/icons/success.svg | 1 + src/components/AuthPages/ForgetPwdResponse.jsx | 6 +++--- src/components/AuthPages/ForgotPassword/index.jsx | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 src/assets/images/icons/error.svg create mode 100644 src/assets/images/icons/success.svg diff --git a/src/assets/images/icons/error.svg b/src/assets/images/icons/error.svg new file mode 100644 index 0000000..3cc645e --- /dev/null +++ b/src/assets/images/icons/error.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/images/icons/success.svg b/src/assets/images/icons/success.svg new file mode 100644 index 0000000..cae29c3 --- /dev/null +++ b/src/assets/images/icons/success.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/AuthPages/ForgetPwdResponse.jsx b/src/components/AuthPages/ForgetPwdResponse.jsx index f17934f..013678f 100644 --- a/src/components/AuthPages/ForgetPwdResponse.jsx +++ b/src/components/AuthPages/ForgetPwdResponse.jsx @@ -1,5 +1,6 @@ import React from 'react' import { useNavigate } from 'react-router-dom' +import localImgLoad from '../../lib/localImgLoad' const ForgetPwdResponse = ({title, message, type}) => { const navigate = useNavigate() @@ -10,9 +11,8 @@ const ForgetPwdResponse = ({title, message, type}) => { {title} -
- {/* */} -

Icon

+
+ alert-banner

diff --git a/src/components/AuthPages/ForgotPassword/index.jsx b/src/components/AuthPages/ForgotPassword/index.jsx index 199e8c9..0eb7772 100644 --- a/src/components/AuthPages/ForgotPassword/index.jsx +++ b/src/components/AuthPages/ForgotPassword/index.jsx @@ -48,7 +48,7 @@ export default function ForgotPassword() { } if (email !== "" && checked) { - const reqData = { email }; + const reqData = { email, action:11013 }; setResetLoading(true); try { const res = await userApi.StartResetPassword(reqData); From 9fd8944987a3a6aeee4eb17b3dc4d15e7bdcc0ab Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Sat, 5 Aug 2023 16:52:20 +0100 Subject: [PATCH 2/2] pwd validation msg changed --- src/components/AuthPages/VerifyPassword/index.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AuthPages/VerifyPassword/index.jsx b/src/components/AuthPages/VerifyPassword/index.jsx index 37fc6e6..72a209e 100644 --- a/src/components/AuthPages/VerifyPassword/index.jsx +++ b/src/components/AuthPages/VerifyPassword/index.jsx @@ -54,7 +54,7 @@ const VerifyPassword = () => { }, process.env.REACT_APP_RESET_START_ERROR_TIMEOUT); } if(!PasswordValidator(password)){ // CHECKS IF PASSWORD IS VALID - setMsgError("Invalid Password: eg: Password1@"); + setMsgError("Password must contain alphanumeric, uppercase and special character: eg: Password1@"); return setTimeout(() => { setMsgError(null); }, process.env.REACT_APP_RESET_START_ERROR_TIMEOUT);