-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Forgot password flow #12
Comments
💯 I am thinking we'd use Resend and react-email for both this, as well as the team invite flow. https://github.com/leerob/next-saas-starter/blob/afff269d7ad8d6b90f5bf2c50dbf15b2ebc285d6/app/(login)/actions.ts#L417-L420 |
@leerob Yes please! react-email is also very easy, I can add it to the repo. My favorite is the Vercel theme: |
hey @leerob can you please help me in local setup? |
Yes tutorial Video missing 🙌 |
// Get references to the form and its elements // Email validation regex // Handle form submission const email = emailInput.value.trim(); // Validate the email input // Hide the error message if validation passes // Simulate sending a reset link (replace with actual API call) |
At the moment it's not possible to reset a forgotten password.
I suggest a basic reset password flow by sending the user a password reset link to their email.
Maybe using resend? But should be easily swappable with other email libraries.
The text was updated successfully, but these errors were encountered: