From c17c024ce65b5fbb6a1e2bbd74170ce848a1699e Mon Sep 17 00:00:00 2001 From: pilcrow Date: Tue, 25 Jun 2024 20:33:37 +0900 Subject: [PATCH] Docs: Fix password reset page in email and password guide (#1613) --- docs/pages/guides/email-and-password/password-reset.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/pages/guides/email-and-password/password-reset.md b/docs/pages/guides/email-and-password/password-reset.md index 7301cc99e..09fcb5226 100644 --- a/docs/pages/guides/email-and-password/password-reset.md +++ b/docs/pages/guides/email-and-password/password-reset.md @@ -51,7 +51,9 @@ app.post("/reset-password", async () => { // ... const user = await db.table("user").where("email", "=", email).get(); - if (!user || !user.email_verified) { + if (!user) { + // If you want to avoid disclosing valid emails, + // this can be a normal 200 response. return new Response("Invalid email", { status: 400 });