Compare commits

..

2 Commits

Author SHA1 Message Date
fbc92da47d Release candidate 2023-06-19 02:42:53 +02:00
519c69cb79 #359: Add log for debugging issue with Keycloak 11.0.2 2023-06-19 02:42:22 +02:00
4 changed files with 12 additions and 15 deletions

View File

@ -1,6 +1,6 @@
{
"name": "keycloakify",
"version": "7.13.2",
"version": "7.13.2-rc.0",
"description": "Create Keycloak themes using React",
"repository": {
"type": "git",

View File

@ -34,6 +34,8 @@
<#-- https://github.com/keycloakify/keycloakify/pull/359 Compat with Keycloak prior v12 -->
<#if !messagesPerField.existsError??>
/* Consider updating to Keycloak v12 or newer */
<#-- https://github.com/keycloakify/keycloakify/pull/218 -->
<#if '${fieldName}' == 'username' || '${fieldName}' == 'password'>
@ -42,6 +44,7 @@
<#attempt>
<#assign doExistMessageForUsernameOrPassword = messagesPerField.exists('username')>
<#recover>
/* There was an FTL error calling messagesPerField.exists('username') */
<#assign doExistMessageForUsernameOrPassword = true>
</#attempt>
@ -49,6 +52,7 @@
<#attempt>
<#assign doExistMessageForUsernameOrPassword = messagesPerField.exists('password')>
<#recover>
/* There was an FTL error calling messagesPerField.exists('password') */
<#assign doExistMessageForUsernameOrPassword = true>
</#attempt>
</#if>

View File

@ -211,8 +211,7 @@ const keycloakifyExtraMessages = {
"shouldBeDifferent": "{0} should be different to {1}",
"shouldMatchPattern": "Pattern should match: `/{0}/`",
"mustBeAnInteger": "Must be an integer",
"notAValidOption": "Not a valid option",
"selectAnOption": "Select an option"
"notAValidOption": "Not a valid option"
},
"fr": {
/* spell-checker: disable */
@ -224,8 +223,7 @@ const keycloakifyExtraMessages = {
"logoutConfirmTitle": "Déconnexion",
"logoutConfirmHeader": "Êtes-vous sûr(e) de vouloir vous déconnecter ?",
"doLogout": "Se déconnecter",
"selectAnOption": "Sélectionner une option"
"doLogout": "Se déconnecter"
/* spell-checker: enable */
}
};

View File

@ -17,7 +17,7 @@ export type UserProfileFormFieldsProps = {
export function UserProfileFormFields(props: UserProfileFormFieldsProps) {
const { kcContext, onIsFormSubmittableValueChange, i18n, getClassName, BeforeField, AfterField } = props;
const { advancedMsg, msg } = i18n;
const { advancedMsg } = i18n;
const {
formValidationState: { fieldStateByAttributeName, isFormSubmittable },
@ -98,16 +98,11 @@ export function UserProfileFormFields(props: UserProfileFormFieldsProps) {
}
value={value}
>
<>
<option value="" selected disabled hidden>
{msg("selectAnOption")}
{options.options.map(option => (
<option key={option} value={option}>
{option}
</option>
{options.options.map(option => (
<option key={option} value={option}>
{option}
</option>
))}
</>
))}
</select>
);
}