KEYCLOAK-9320 Make theme properties available in email templates
This commit is contained in:
parent
191c9753de
commit
b666756b8f
1 changed files with 1 additions and 0 deletions
|
@ -204,6 +204,7 @@ public class FreeMarkerEmailTemplateProvider implements EmailTemplateProvider {
|
|||
attributes.put("locale", locale);
|
||||
Properties rb = theme.getMessages(locale);
|
||||
attributes.put("msg", new MessageFormatterMethod(locale, rb));
|
||||
attributes.put("properties", theme.getProperties());
|
||||
String subject = new MessageFormat(rb.getProperty(subjectKey, subjectKey), locale).format(subjectAttributes.toArray());
|
||||
String textTemplate = String.format("text/%s", template);
|
||||
String textBody;
|
||||
|
|
Loading…
Reference in a new issue