[keycloak-user] add user.username on email-verification.ftl file ?????
Łukasz Dywicki
luke at code-house.org
Thu May 16 08:49:34 EDT 2019
Not sure if you did it by mistake, but proper variable reference in
freemarker template is ${varX}, in your case ${user.username}.
Two places which are involved in processing email you looking for:
https://github.com/keycloak/keycloak/blob/4.8.3.Final/services/src/main/java/org/keycloak/email/freemarker/FreeMarkerEmailTemplateProvider.java#L167
https://github.com/keycloak/keycloak/blob/4.8.3.Final/services/src/main/java/org/keycloak/email/freemarker/beans/ProfileBean.java#L54
Kind regards,
Łukasz
--
Code-House
http://code-house.org
On 16.05.2019 11:34, Christophe Lehingue wrote:
> Hello,
>
> I would like to add the nominative information in the template "themes
> / base / email / html / email-verification.ftl".
>
> I would like to make the user's name appear, but it does not work.
>
> I do this: I add this tag "$ {(user.username!") "in this file, but
> nothing appears.
>
> Do you know how I could do it?
>
> Thank you.
>
> ==== In FR ======
> Bonjour,
>
> Je souhaiterais ajouter les informations nominatives dans le template
> "themes / base / email / html / email-verification.ftl".
>
> Je souhaiterais faire paraître le nom de l'utilisateur, mais cela ne
> fonctionne pas.
>
> je fais ainsi : j'ajoute cette balise "${(user.username!'')" dans ce
> fichier, mais rien n'apparait.
>
> Savez-vous comment je pourrais faire ?
>
> Merci à vous.
> _______________________________________________
> keycloak-user mailing list
> keycloak-user at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-user
>
More information about the keycloak-user
mailing list