diff --git a/docker-compose/keycloak/realms/pid-issuer-realm-realm.json b/docker-compose/keycloak/realms/pid-issuer-realm-realm.json index 68279394..4d9fab1c 100644 --- a/docker-compose/keycloak/realms/pid-issuer-realm-realm.json +++ b/docker-compose/keycloak/realms/pid-issuer-realm-realm.json @@ -1138,23 +1138,6 @@ "jsonType.label": "boolean" } }, - { - "id": "90daa6fb-1cd3-4935-90fa-04a1427df4e9", - "name": "Place Of Birth", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-attribute-mapper", - "consentRequired": false, - "config": { - "aggregate.attrs": "false", - "userinfo.token.claim": "true", - "multivalued": "false", - "user.attribute": "place_of_birth", - "id.token.claim": "false", - "access.token.claim": "false", - "claim.name": "place_of_birth", - "jsonType.label": "JSON" - } - }, { "id": "27a29370-a2a6-4e8c-8378-6d4999ac092e", "name": "picture", @@ -1327,23 +1310,6 @@ "jsonType.label": "boolean" } }, - { - "id": "c8395e40-a5f8-4983-ba39-ca8689bdfcbd", - "name": "Place Of Birth", - "protocol": "openid-connect", - "protocolMapper": "oidc-usermodel-attribute-mapper", - "consentRequired": false, - "config": { - "aggregate.attrs": "false", - "userinfo.token.claim": "true", - "multivalued": "false", - "user.attribute": "place_of_birth", - "id.token.claim": "false", - "access.token.claim": "false", - "claim.name": "place_of_birth", - "jsonType.label": "JSON" - } - }, { "id": "9cda1d0b-2413-4bc5-aef0-14860e042c6b", "name": "picture", diff --git a/docker-compose/keycloak/themes/pid-issuer/login/messages/messages_en.properties b/docker-compose/keycloak/themes/pid-issuer/login/messages/messages_en.properties index aca47c38..1072383a 100644 --- a/docker-compose/keycloak/themes/pid-issuer/login/messages/messages_en.properties +++ b/docker-compose/keycloak/themes/pid-issuer/login/messages/messages_en.properties @@ -1,7 +1,12 @@ gender=Gender +gender_not_known=Not known +gender_male=Male +gender_female=Female +gender_not_applicable=Not applicable birthdate=Birthdate age_over_18=Age over 18 -place_of_birth=Place of Birth +age_over_18_yes=Yes +age_over_18_no=No profile=Profile picture=Picture credentials=Credentials diff --git a/docker-compose/keycloak/themes/pid-issuer/login/register.ftl b/docker-compose/keycloak/themes/pid-issuer/login/register.ftl index 4c14730f..b654628f 100644 --- a/docker-compose/keycloak/themes/pid-issuer/login/register.ftl +++ b/docker-compose/keycloak/themes/pid-issuer/login/register.ftl @@ -1,6 +1,6 @@ <#import "template.ftl" as layout> <#import "register-commons.ftl" as registerCommons> -<@layout.registrationLayout displayMessage=!messagesPerField.existsError('firstName','lastName','user.attributes.gender','user.attributes.birthdate','user.attributes.place_of_birth','user.attributes.age_over_18','user.attributes.picture','user.attributes.street','user.attributes.locality','user.attributes.region','user.attributes.postal_code','user.attributes.country','user.attributes.formatted','username','password','password-confirm','termsAccepted'); section> +<@layout.registrationLayout displayMessage=!messagesPerField.existsError('firstName','lastName','user.attributes.gender','user.attributes.birthdate','user.attributes.age_over_18','user.attributes.picture','user.attributes.street','user.attributes.locality','user.attributes.region','user.attributes.postal_code','user.attributes.country','user.attributes.formatted','username','password','password-confirm','termsAccepted'); section> <#if section = "header"> ${msg("registerTitle")} <#elseif section = "form"> @@ -52,11 +52,14 @@
- - + <#if messagesPerField.existsError('user.attributes.gender')> ${kcSanitize(messagesPerField.get('user.attributes.gender'))?no_esc} @@ -92,11 +95,12 @@
- - + <#if messagesPerField.existsError('user.attributes.age_over_18')> ${kcSanitize(messagesPerField.get('user.attributes.age_over_18'))?no_esc} @@ -106,26 +110,6 @@
- -
-
- -
-
- - - <#if messagesPerField.existsError('user.attributes.place_of_birth')> - - ${kcSanitize(messagesPerField.get('user.attributes.place_of_birth'))?no_esc} - - -
-
- -