mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-06 09:13:19 +03:00
[PR #958] [MERGED] feat: allow uppercase usernames #528
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/pocket-id/pocket-id/pull/958
Author: @stonith404
Created: 9/17/2025
Status: ✅ Merged
Merged: 9/17/2025
Merged by: @kmendell
Base:
main← Head:feat/uppercase-username📝 Commits (3)
6c857cffeat: allow uppercase usernamesfc20b0buse CITEXT for username986de79add e2e tests📊 Changes
14 files changed (+71 additions, -27 deletions)
View changed files
📝
backend/internal/middleware/error_handler.go(+1 -1)➖
backend/resources/migrations/postgres/20250829120000_user_display_name.down.sql(+0 -1)➖
backend/resources/migrations/postgres/20250829120000_user_display_name.up.sql(+0 -6)➕
backend/resources/migrations/postgres/20250917170000_user_display_name_and_username.down.sql(+3 -0)➕
backend/resources/migrations/postgres/20250917170000_user_display_name_and_username.up.sql(+6 -0)📝
backend/resources/migrations/sqlite/20250917170000_user_display_name_and_username.down.sql(+0 -0)📝
backend/resources/migrations/sqlite/20250917170000_user_display_name_and_username.up.sql(+1 -1)📝
frontend/messages/en.json(+2 -0)📝
frontend/src/lib/components/signup/signup-form.svelte(+2 -6)📝
frontend/src/lib/utils/zod-util.ts(+8 -0)📝
frontend/src/routes/settings/account/account-form.svelte(+2 -6)📝
frontend/src/routes/settings/admin/users/user-form.svelte(+2 -6)📝
tests/specs/account-settings.spec.ts(+12 -0)📝
tests/specs/user-settings.spec.ts(+32 -0)📄 Description
This PR allows users to use uppercase letters in their usernames. The database index prevents the same username with different cases to avoid username confusion.
Closes #906, #909
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.