Skip to content

feat: remove username field from registration, fix invalid credentials message - #117

Merged
kingazm merged 1 commit into
mainfrom
feature-keycloak-theme-merged
May 3, 2026
Merged

feat: remove username field from registration, fix invalid credentials message#117
kingazm merged 1 commit into
mainfrom
feature-keycloak-theme-merged

Conversation

@cssma

@cssma cssma commented Apr 19, 2026

Copy link
Copy Markdown
Collaborator

…s message

📄 Pull Request Description


🧩 What was changed?

Removed the username field from the Keycloak registration form. Updated the invalid credentials error message to use "email" instead of "username" in both English and Polish.


💡 Why was it changed?

The app uses email as username (registrationEmailAsUsername = true in Keycloak), so the username field was redundant and confusing for users. The error message "Invalid username or password" was also misleading since users log in with email.


⚙️ How was it implemented?

Removed the username input field from RegisterPage component in KcPage.tsx

Added custom translation override for invalidUserMessage key in i18n.ts for both EN and PL


⚠️ Side Effects or Risks

None


✅ Checklist

  • All 4 sections above are clearly filled out
  • Tests and documentation updated

@kingazm
kingazm self-requested a review April 28, 2026 09:01

@kingazm kingazm left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kingazm
kingazm merged commit 5d1b3fc into main May 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants