[PR #825] [MERGED] fix: Set emailVerified to false when changing email #3494

Closed
opened 2026-03-13 10:55:39 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/825
Author: @ngregrichardson
Created: 12/8/2024
Status: Merged
Merged: 12/8/2024
Merged by: @Bekacru

Base: mainHead: fix/change-email-set-unverified


📝 Commits (2)

  • 0a16f73 fix: Set emailVerified to false when changing email
  • fe0140c fix: Add comma

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/api/routes/email-verification.ts (+1 -0)

📄 Description

When changing an email, emailVerified is not updated to false when the new email is set.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/825 **Author:** [@ngregrichardson](https://github.com/ngregrichardson) **Created:** 12/8/2024 **Status:** ✅ Merged **Merged:** 12/8/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/change-email-set-unverified` --- ### 📝 Commits (2) - [`0a16f73`](https://github.com/better-auth/better-auth/commit/0a16f73ef3d71ca9695991130c91eb374eaa70db) fix: Set emailVerified to false when changing email - [`fe0140c`](https://github.com/better-auth/better-auth/commit/fe0140cdbd08a5ad082a54dc56e28afa99895477) fix: Add comma ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/email-verification.ts` (+1 -0) </details> ### 📄 Description When changing an email, `emailVerified` is not updated to false when the new email is set. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 10:55:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#3494