Skip to content

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

Open
cssma wants to merge 1 commit intomainfrom
feature-keycloak-theme-merged
Open

feat: remove username field from registration, fix invalid credentials message#117
cssma wants to merge 1 commit intomainfrom
feature-keycloak-theme-merged

Conversation

@cssma
Copy link
Copy Markdown
Collaborator

@cssma cssma commented Apr 19, 2026

…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

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.

1 participant