Skip to content

Forgot Password Workflow (Frontend + Backend) - #1799

Merged
omroy07 merged 4 commits into
omroy07:mainfrom
Aditya8369:278
May 28, 2026
Merged

Forgot Password Workflow (Frontend + Backend)#1799
omroy07 merged 4 commits into
omroy07:mainfrom
Aditya8369:278

Conversation

@Aditya8369

Copy link
Copy Markdown
Contributor

The flow is wired end to end now. I’m not making more changes unless validation uncovers a concrete defect, because the remaining risk is operational mail configuration rather than the reset workflow itself.

Implemented the forgot-password flow across backend and frontend.

The backend now persists reset tokens in token.py, uses them in the auth service, and exposes a validation endpoint at auth.py so the reset page can reject expired or invalid tokens before showing the form. The reset email now points at the frontend reset page, and the password update path still uses the existing secure hash update in the user model.

On the frontend, forgot-password.html now posts to the Flask forgot-password API instead of Firebase, and reset-password.html validates the token first, then submits the new password to the backend. I also normalized the theme persistence key on login.html and the forgot/reset pages so dark mode continues to carry across those auth screens.

closes #278

@vercel

vercel Bot commented May 28, 2026

Copy link
Copy Markdown

@Aditya8369 is attempting to deploy a commit to the Om Roy's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions

Copy link
Copy Markdown

Thanks for creating a PR for your Issue! ☺️

We'll review it as soon as possible.
In the meantime, please double-check the file changes and ensure that all commits are accurate.

If there are any unresolved review comments, feel free to resolve them. 🙌🏼

@Aditya8369

Copy link
Copy Markdown
Contributor Author

@omroy07 merge under nsoc

@omroy07
omroy07 merged commit 45b650c into omroy07:main May 28, 2026
1 of 4 checks passed
@github-actions

Copy link
Copy Markdown

🎉 Congrats @Aditya8369 on getting your PR merged! 🙌
Thanks for the contribution — looking forward to more from you 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Forgot Password Workflow (Frontend + Backend)

2 participants