mirror of
https://github.com/pelican-dev/plugins.git
synced 2026-05-09 00:08:54 +02:00
[PR #127] [MERGED] register: fix username label and add uniqueness check #127
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/plugins#127
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pelican-dev/plugins/pull/127
Author: @rxtted
Created: 5/1/2026
Status: ✅ Merged
Merged: 5/1/2026
Merged by: @Boy132
Base:
main← Head:fix/register-username-label-and-unique📝 Commits (2)
0480686fix username label and add uniqueness check6390c87Update register/src/Filament/Pages/Auth/Register.php📊 Changes
1 file changed (+3 additions, -1 deletions)
View changed files
📝
register/src/Filament/Pages/Auth/Register.php(+3 -1)📄 Description
before:
the username override renames the parent's name input but keeps the parent's label, which resolves to
"name". the form rendered a field labeled "name" while binding to the username column users sign in with.
the override also dropped the parent's unique check, so duplicate-username submissions fell through to user creation and surfaced the database unique index violation as an unhandled error.
change:
added an explicit username label using the panel's existing translation key, and a unique validation rule scoped to the username column. mirrors how the parent handles the email field.
after:
the field renders with the label "Username". duplicate submissions show "The username has already been taken."
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.