Skip to content

Commit

Permalink
Docs: Fix password reset page in email and password guide (#1613)
Browse files Browse the repository at this point in the history
  • Loading branch information
pilcrowOnPaper committed Jun 25, 2024
1 parent 0630ea5 commit c17c024
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/pages/guides/email-and-password/password-reset.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down

0 comments on commit c17c024

Please sign in to comment.