update forget passsword
This commit is contained in:
@@ -349,6 +349,13 @@ const DashboardLayout = ({ isOnline }) => {
|
||||
Deletion request
|
||||
</span>
|
||||
);
|
||||
case path.startsWith("/subadmin"):
|
||||
return (
|
||||
<span className="d-flex align-items-end gap-2">
|
||||
<RiMoneyDollarBoxLine className="h4 m-0 fw-normal" />
|
||||
Manage SubAdmin
|
||||
</span>
|
||||
);
|
||||
|
||||
default:
|
||||
if (path.startsWith("/community/view/")) {
|
||||
|
||||
@@ -25,7 +25,7 @@ const validationSchema = yup.object().shape({
|
||||
emailAddress: yup
|
||||
.string()
|
||||
.email("Invalid email format")
|
||||
.required("Email, Phone, or Username is required"),
|
||||
.required("email address is required"),
|
||||
});
|
||||
|
||||
const ForgetPassword = ({ isOpen, onClose, firstField }) => {
|
||||
@@ -52,7 +52,7 @@ const ForgetPassword = ({ isOpen, onClose, firstField }) => {
|
||||
render: () => <ToastBox message={res?.data?.message} />,
|
||||
});
|
||||
handleClose();
|
||||
} else if (res?.error?.status === 401) {
|
||||
} else if (res?.error?.status === 400) {
|
||||
toast({
|
||||
render: () => (
|
||||
<ToastBox message={res?.error?.data?.message} status="error" />
|
||||
@@ -86,9 +86,9 @@ const ForgetPassword = ({ isOpen, onClose, firstField }) => {
|
||||
<ModalCloseButton />
|
||||
<ModalBody pb={4}>
|
||||
<Stack spacing={4}>
|
||||
<FormControl isInvalid={errors.emailAddress}>
|
||||
<FormControl isInvalid={errors.emailAddress} isRequired>
|
||||
<FormLabel fontSize="sm" mb={3} fontWeight={500}>
|
||||
Email, Phone, or Username
|
||||
Please Enter Email Adress
|
||||
</FormLabel>
|
||||
<Controller
|
||||
name="emailAddress"
|
||||
@@ -122,7 +122,7 @@ const ForgetPassword = ({ isOpen, onClose, firstField }) => {
|
||||
fontWeight={400}
|
||||
fontSize="sm"
|
||||
>
|
||||
Send Login Link
|
||||
Reset Password
|
||||
</Button>
|
||||
</DrawerFooter>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user