[PR #1695] [MERGED] fix: lowercase email in change email process, find as it is #3947

Closed
opened 2026-03-13 11:24:18 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1695
Author: @hyoban
Created: 3/5/2025
Status: Merged
Merged: 3/6/2025
Merged by: @Bekacru

Base: mainHead: fix/use-lowercase-email-when-save


📝 Commits (2)

  • 88a2a4b fix: normalize email to lowercase in change email process, not find
  • 17845b4 format

📊 Changes

2 files changed (+14 additions, -14 deletions)

View changed files

📝 packages/better-auth/src/api/routes/update-user.ts (+13 -13)
📝 packages/better-auth/src/db/internal-adapter.ts (+1 -1)

📄 Description

Currently, if a user changes his email address to include uppercase letters, he will not be able to verify his email address or reset his password.

Related: https://github.com/RSSNext/Follow/issues/2950


🔄 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/1695 **Author:** [@hyoban](https://github.com/hyoban) **Created:** 3/5/2025 **Status:** ✅ Merged **Merged:** 3/6/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/use-lowercase-email-when-save` --- ### 📝 Commits (2) - [`88a2a4b`](https://github.com/better-auth/better-auth/commit/88a2a4b1ac2d5080bdfba2c72dd0cffd90632223) fix: normalize email to lowercase in change email process, not find - [`17845b4`](https://github.com/better-auth/better-auth/commit/17845b4b5497c21cfd0cd259fa427531e3d5b29d) format ### 📊 Changes **2 files changed** (+14 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/update-user.ts` (+13 -13) 📝 `packages/better-auth/src/db/internal-adapter.ts` (+1 -1) </details> ### 📄 Description Currently, if a user changes his email address to include uppercase letters, he will not be able to verify his email address or reset his password. Related: https://github.com/RSSNext/Follow/issues/2950 --- <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 11:24:18 -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#3947