Skip to content

Commit c17c024

Browse files
Docs: Fix password reset page in email and password guide (#1613)
1 parent 0630ea5 commit c17c024

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/pages/guides/email-and-password/password-reset.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ app.post("/reset-password", async () => {
5151
// ...
5252

5353
const user = await db.table("user").where("email", "=", email).get();
54-
if (!user || !user.email_verified) {
54+
if (!user) {
55+
// If you want to avoid disclosing valid emails,
56+
// this can be a normal 200 response.
5557
return new Response("Invalid email", {
5658
status: 400
5759
});

0 commit comments

Comments
 (0)