Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f70659901c | |||
| 451e4624b1 | |||
| 1557ba1040 | |||
| 7133ad8de3 | |||
| 9fd8944987 | |||
| 874276dcba | |||
| be1454f1b8 |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32" id="error"><path fill="#ff1d25" d="M29.75,25.73,18.68,3.59a3,3,0,0,0-4-1.33,3.05,3.05,0,0,0-1.33,1.33L2.25,25.73a3,3,0,0,0,2.68,4.34H27.07a3,3,0,0,0,3-3A2.88,2.88,0,0,0,29.75,25.73ZM16,25.38a.94.94,0,1,1,.94-.94A.94.94,0,0,1,16,25.38Zm.94-4.69a.94.94,0,1,1-1.88,0V11.31a.94.94,0,1,1,1.88,0Z"></path></svg>
|
||||||
|
After Width: | Height: | Size: 365 B |
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" id="success"><path fill="#80af52" d="M256 26c127.03 0 230 102.97 230 230S383.03 486 256 486 26 383.03 26 256 128.97 26 256 26z"></path><path fill="#fff" d="M215.999 386a9.998 9.998 0 0 1-7.525-3.415l-70-80c-3.637-4.156-3.215-10.474.941-14.11s10.475-3.217 14.111.94l60.961 69.67 142.938-238.23c2.842-4.736 8.983-6.273 13.72-3.43 4.736 2.841 6.271 8.984 3.431 13.72l-150 250a9.998 9.998 0 0 1-8.577 4.855z"></path></svg>
|
||||||
|
After Width: | Height: | Size: 483 B |
@@ -1,5 +1,6 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
import { useNavigate } from 'react-router-dom'
|
import { useNavigate } from 'react-router-dom'
|
||||||
|
import localImgLoad from '../../lib/localImgLoad'
|
||||||
|
|
||||||
const ForgetPwdResponse = ({title, message, type}) => {
|
const ForgetPwdResponse = ({title, message, type}) => {
|
||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
@@ -10,9 +11,8 @@ const ForgetPwdResponse = ({title, message, type}) => {
|
|||||||
{title}
|
{title}
|
||||||
</h1>
|
</h1>
|
||||||
</div>
|
</div>
|
||||||
<div className="title-area flex flex-col justify-center items-center relative text-center mb-7">
|
<div className="title-area w-[100px] h-[100px] mx-auto flex flex-col justify-center items-center relative text-center mb-7">
|
||||||
{/* <img src='' /> */}
|
<img className='w-full h-full' src={`${type ? localImgLoad('images/icons/success.svg') : localImgLoad('images/icons/error.svg')}`} alt='alert-banner' />
|
||||||
<p className='rounded-full border w-[50px] h-[50px] flex items-center justify-center'>Icon</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div className="title-area flex flex-col justify-center items-center relative text-center mb-7">
|
<div className="title-area flex flex-col justify-center items-center relative text-center mb-7">
|
||||||
<p className={`${type ? 'text-sky-blue' : 'text-red-500'} font-semibold dark:text-white mb-3 leading-[27.3px] text-[18px]`}>
|
<p className={`${type ? 'text-sky-blue' : 'text-red-500'} font-semibold dark:text-white mb-3 leading-[27.3px] text-[18px]`}>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export default function ForgotPassword() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (email !== "" && checked) {
|
if (email !== "" && checked) {
|
||||||
const reqData = { email };
|
const reqData = { email, action:11013 };
|
||||||
setResetLoading(true);
|
setResetLoading(true);
|
||||||
try {
|
try {
|
||||||
const res = await userApi.StartResetPassword(reqData);
|
const res = await userApi.StartResetPassword(reqData);
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ const VerifyPassword = () => {
|
|||||||
}, process.env.REACT_APP_RESET_START_ERROR_TIMEOUT);
|
}, process.env.REACT_APP_RESET_START_ERROR_TIMEOUT);
|
||||||
}
|
}
|
||||||
if(!PasswordValidator(password)){ // CHECKS IF PASSWORD IS VALID
|
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(() => {
|
return setTimeout(() => {
|
||||||
setMsgError(null);
|
setMsgError(null);
|
||||||
}, process.env.REACT_APP_RESET_START_ERROR_TIMEOUT);
|
}, process.env.REACT_APP_RESET_START_ERROR_TIMEOUT);
|
||||||
@@ -156,6 +156,11 @@ const VerifyPassword = () => {
|
|||||||
<span className="text-gray-400 font-medium text-[16.25px] leading-[24.375px]">
|
<span className="text-gray-400 font-medium text-[16.25px] leading-[24.375px]">
|
||||||
We'll send an email to confirm reset
|
We'll send an email to confirm reset
|
||||||
</span>
|
</span>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<p className="text-red-500 font-semibold mb-3 leading-[27.3px] text-[13px]">
|
||||||
|
Must include a special, numeric, uppercase and lowercase character
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<SuccessfulComponent
|
<SuccessfulComponent
|
||||||
password={password}
|
password={password}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import React, { useEffect, useState } from "react";
|
import React, { useEffect, useState } from "react";
|
||||||
import { Link, useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
import Layout from "../Partials/Layout";
|
|
||||||
import CommonHead from "../UserHeader/CommonHead";
|
|
||||||
import usersService from "../../services/UsersService";
|
import usersService from "../../services/UsersService";
|
||||||
|
import Layout from "../Partials/Layout";
|
||||||
import LoadingSpinner from "../Spinners/LoadingSpinner";
|
import LoadingSpinner from "../Spinners/LoadingSpinner";
|
||||||
|
import CommonHead from "../UserHeader/CommonHead";
|
||||||
|
|
||||||
export default function BlogItem(props) {
|
export default function BlogItem(props) {
|
||||||
|
|
||||||
@@ -16,6 +16,7 @@ export default function BlogItem(props) {
|
|||||||
const filterHandler = (value) => {
|
const filterHandler = (value) => {
|
||||||
setValue(value);
|
setValue(value);
|
||||||
};
|
};
|
||||||
|
// eslint-disable-next-line no-restricted-globals
|
||||||
const queryParams = new URLSearchParams(location?.search);
|
const queryParams = new URLSearchParams(location?.search);
|
||||||
const blog_id = queryParams.get("blog_id");
|
const blog_id = queryParams.get("blog_id");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user