Add Forgot Password functionality and related components

- Introduced new components for the Forgot Password flow: EmailInput, OTPInput, OTPVerification, PasswordSetup, and ConfirmationMessage.
- Implemented navigation updates in DashboardCard for project links.
- Added a new decal image asset for the categories.
- Updated sidebar assets to include decals.
- Enhanced UserAuth page to include a link for forgotten passwords.
- Created a dedicated ForgotPassword page to manage the entire password recovery process.
- Added styles for the new Forgot Password components and updated existing styles for consistency.
This commit is contained in:
Nalvazhuthi
2025-08-18 10:07:47 +05:30
parent 5d17c1125b
commit cd465edc56
20 changed files with 500 additions and 44 deletions

View File

@@ -58,10 +58,10 @@ const UserAuth: React.FC = () => {
const projects = await recentlyViewed(organization, res.message.userId);
if (res.message.isShare) {
if (Object.values(projects.RecentlyViewed).length > 0) {
const firstId = (Object.values(projects?.RecentlyViewed || {})[0] as any)?._id;
if (Object.values(projects?.RecentlyViewed).filter((val: any) => val._id == firstId)) {
const recent_opend_projectID = (Object.values(projects?.RecentlyViewed || {})[0] as any)?._id;
if (Object.values(projects?.RecentlyViewed).filter((val: any) => val._id == recent_opend_projectID)) {
setLoadingProgress(1)
navigate(`/${firstId}`)
navigate(`/projects/${recent_opend_projectID}`)
} else {
navigate("/Dashboard")
}
@@ -200,6 +200,9 @@ const UserAuth: React.FC = () => {
<EyeIcon isClosed={showPassword} />
</button>
</div>
{isSignIn && <a href="forgot" className="forgot-password">Forgot password ?</a>}
{!isSignIn && (
<div className="policy-checkbox">
<input type="checkbox" id="tos" required />