From 8f9f0091eae723a90eb71208c853e1bb3ddb7718 Mon Sep 17 00:00:00 2001 From: Vikas Nale Date: Fri, 4 Jul 2025 13:24:47 +0530 Subject: [PATCH] modify change password UI --- src/pages/authentication/ChangePassword.jsx | 169 +++++++++----------- 1 file changed, 75 insertions(+), 94 deletions(-) diff --git a/src/pages/authentication/ChangePassword.jsx b/src/pages/authentication/ChangePassword.jsx index 753340e4..5191d6c3 100644 --- a/src/pages/authentication/ChangePassword.jsx +++ b/src/pages/authentication/ChangePassword.jsx @@ -52,7 +52,6 @@ const ChangePasswordPage = ({ onClose }) => { oldPassword: data.oldPassword, newPassword: data.newPassword, }; - console.log(formData); setLoading(true); await AuthRepository.changepassword(formData); showToast("Your Password changed Successfully", "success"); @@ -72,23 +71,20 @@ const ChangePasswordPage = ({ onClose }) => { role="dialog" style={{ display: "flex", backgroundColor: "rgba(0,0,0,0.5)" }} > -
-
- {/* Close Button */} +
+
+ {" "} +
+ +
+ {/* Close Button */}
Change Password

@@ -97,7 +93,7 @@ const ChangePasswordPage = ({ onClose }) => {

{/* Old Password */} -
+
{ )}
-
-
- -
- - -
- {errors.newPassword && ( -
- {errors.newPassword.message} -
- )} + {/*
*/} +
+ +
+ +
- - {/* Confirm Password */} -
- -
- - + {errors.newPassword && ( +
+ {errors.newPassword.message}
- {errors.confirmPassword && ( -
- {errors.confirmPassword.message} -
- )} -
+ )}
+ {/* Confirm Password */} +
+ +
+ + +
+ {errors.confirmPassword && ( +
+ {errors.confirmPassword.message} +
+ )} +
+ {/*
*/} +
+ Your password must have at least 8 characters and include a lower + case latter, an uppercase letter, a number, and a special + character. +
{/* Action Buttons */} -
+
-
-

Password must be:

-

- at least 8 characters long

-

- - must contain one uppercase, one lowercase letter, at least one - number, at least one special character -

- {/*

- - must contain at least one lowercase letter -

-

- must contain at least one number

-

- - must contain at least one special character -

*/} -