Verified Commit 9418dadc authored by Hugo's avatar Hugo
Browse files

change username limit

parent 29b85cf8
Pipeline #758 passed with stages
in 1 minute and 10 seconds
FROM docker.io/jboss/keycloak:15.0.2 as base
RUN sed -i 's/ng-pattern=\".*\"/pattern=\"[a-zA-Z][a-zA-Z0-9-_.@]{5,24}\"/' /opt/jboss/keycloak/themes/base/admin/resources/partials/user-detail.html \
&& sed -i 's/name=\"name\"/name=\"name\" pattern=\"[a-zA-Z][a-zA-Z0-9-_.@]{5,24}\"/' /opt/jboss/keycloak/themes/base/admin/resources/partials/group-detail.html \
&& sed -i 's/name=\"name\"/name=\"name\" pattern=\"[a-zA-Z][a-zA-Z0-9-_.@]{5,24}\"/' /opt/jboss/keycloak/themes/base/admin/resources/partials/create-group.html
RUN sed -i 's/ng-pattern=\".*\"/pattern=\"[a-zA-Z][a-zA-Z0-9-_.@]{2,24}\"/' /opt/jboss/keycloak/themes/base/admin/resources/partials/user-detail.html \
&& sed -i 's/name=\"name\"/name=\"name\" pattern=\"[a-zA-Z][a-zA-Z0-9-_.@]{2,24}\"/' /opt/jboss/keycloak/themes/base/admin/resources/partials/group-detail.html \
&& sed -i 's/name=\"name\"/name=\"name\" pattern=\"[a-zA-Z][a-zA-Z0-9-_.@]{2,24}\"/' /opt/jboss/keycloak/themes/base/admin/resources/partials/create-group.html
FROM base as prod
......
......@@ -3,7 +3,7 @@ doRegisterNow=Confirm
loginTitle=Log in to {0}
usernamePlaceholder=CamilleLila
usernameHelper=This is how other members will be able to identify you. Attention this choice is definitive, it is recommended to opt for a username under the form ''firstnamelastname''. Special characters are not allowed.
usernameValidationHelper=Username can only contain letters, numbers, dots, hyphens and be between 3 and 25 characters long. Thank you
usernameValidationHelper=Username can only contain letters, numbers, dots, hyphens and be between 2 and 24 characters long. Thank you
firstNamePlaceholder=Camille
lastNamePlaceholder=Lila
emailPlaceholder=c.lila@mail.com
......
......@@ -7,7 +7,7 @@ username=Pseudo
usernameOrEmail=Pseudo ou courriel
usernamePlaceholder=CamilleLila
usernameHelper=C''est ainsi que les autres membres pourront vous identifier. Attention ce choix est d\u00e9finitif, il est recommand\u00e9 d''opter pour un pseudo sous la forme ''prenomnom''. <b>Les caract\u00e9res sp\u00e9ciaux et accents ne sont pas autoris\u00e9s</b>.
usernameValidationHelper=Les pseudos ne peuvent contenir que des lettres, des nombres, points, tirets et faire entre 3 et 25 caract\u00e8res. Merci
usernameValidationHelper=Les pseudos ne peuvent contenir que des lettres, des nombres, points, tirets et faire entre 2 et 24 caract\u00e8res. Merci
firstNamePlaceholder=Camille
lastNamePlaceholder=Lila
emailPlaceholder=c.lila@mail.com
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment