[PR #3911] [CLOSED] fix(username): don't normalize displayusernames #5080

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3911
Author: @ping-maxwell
Created: 8/10/2025
Status: Closed

Base: canaryHead: fix/username/displayname-no-normalization


📝 Commits (1)

  • 300d810 fix(username): don't normalize displayusernames

📊 Changes

2 files changed (+19 additions, -25 deletions)

View changed files

📝 packages/better-auth/src/plugins/username/index.ts (+3 -2)
📝 packages/better-auth/src/plugins/username/schema.ts (+16 -23)

📄 Description

sovles https://discord.com/channels/1288403910284935179/1402043056521347082/1404202079840637039 & https://discord.com/channels/1288403910284935179/1404129847072133170

Summary by cubic

Stopped normalizing displayUsername values in the username plugin schema to preserve user input as entered. This prevents unwanted changes to display names during processing.


🔄 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/3911 **Author:** [@ping-maxwell](https://github.com/ping-maxwell) **Created:** 8/10/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `fix/username/displayname-no-normalization` --- ### 📝 Commits (1) - [`300d810`](https://github.com/better-auth/better-auth/commit/300d810d8bd5e1de71dd78f4613b80397cf8717a) fix(username): don't normalize displayusernames ### 📊 Changes **2 files changed** (+19 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/username/index.ts` (+3 -2) 📝 `packages/better-auth/src/plugins/username/schema.ts` (+16 -23) </details> ### 📄 Description sovles https://discord.com/channels/1288403910284935179/1402043056521347082/1404202079840637039 & https://discord.com/channels/1288403910284935179/1404129847072133170 <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Stopped normalizing displayUsername values in the username plugin schema to preserve user input as entered. This prevents unwanted changes to display names during processing. <!-- End of auto-generated description by cubic. --> --- <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 12:10:05 -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#5080