Remove redundant username error display logic

Closes #39663

The error message rendering for the username field was removed as it is already handled in @field.input macro

Signed-off-by: Roni Saha <roni.cse@gmail.com>
This commit is contained in:
Roni Saha 2025-05-13 17:50:24 +06:00 committed by GitHub
parent 37f8baeb1f
commit 3d10878904
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -19,12 +19,6 @@
<#if !realm.loginWithEmailAllowed>${msg("username")}<#elseif !realm.registrationEmailAsUsername>${msg("usernameOrEmail")}<#else>${msg("email")}</#if>
</#assign>
<@field.input name="username" label=label value=login.username!'' autofocus=true autocomplete="username" />
<#if messagesPerField.existsError('username')>
<span id="input-error-username" class="${properties.kcInputErrorMessageClass!}" aria-live="polite">
${kcSanitize(messagesPerField.get('username'))?no_esc}
</span>
</#if>
</div>
</#if>