mirror of
https://github.com/pelican-dev/panel.git
synced 2026-02-24 19:08:53 +03:00
[PR #2150] [MERGED] Move username sanitization to model and make it less strict #1782
Reference in New Issue
Block a user
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/panel/pull/2150
Author: @Boy132
Created: 1/29/2026
Status: ✅ Merged
Merged: 2/1/2026
Merged by: @Boy132
Base:
main← Head:boy132/fix-username-sanitization📝 Commits (1)
4d67661move username sanitization to model and make it less strict📊 Changes
2 files changed (+2 additions, -7 deletions)
View changed files
📝
app/Models/User.php(+2 -1)📝
app/Services/Users/UserCreationService.php(+0 -6)📄 Description
Closes #2138
Before:
Backend silently removed
.and-from username, made it lowercase and max length was 64.Frontend did not check these restrictions.
Now:
Username is only made lowercase. (to allow case insensitive login)
.and-are allowed. (will cause no problems with sftp)Frontend and backend limits for max length match.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.