forgot password with Email OTP
Hi everyone! I'm working on a forgot password feature using Next.js, Prisma, and PostgreSQL.
When I submit the email on the forgot password page, and the email doesn't exist in the database, it doesn't show an error like "User email doesn't exist." It just silently fails.
Here's the code snippet I'm using:
Does anyone know how I can handle this and show an appropriate error message when the email is not found? Any help would be appreciated!
0 Replies