-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
resolve bug with empty strings and enhance the sent email's body #98
base: main
Are you sure you want to change the base?
Conversation
bodyAttr.put("magicLink", link); | ||
emailTemplateProvider | ||
.setRealm(realm) | ||
.setUser(user) | ||
.setAttribute("realmName", realmName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about this deletion, but according to my quick review noone uses this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it is still used in the customizations. Could you please also check the https://github.com/p2-inc/keycloak-themes/blob/main/src/main/resources/theme/mustache/email/html/magic-link-continuation-email.mustache#L3
@@ -1,4 +1,4 @@ | |||
<#import "template.ftl" as layout> | |||
<@layout.emailLayout> | |||
${kcSanitize(msg("magicLinkContinuationBodyHtml", realmName, magicLink))?no_esc} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also create a separate PR for updating this on the customizations repository https://github.com/p2-inc/keycloak-themes/tree/main/src/main/resources/theme/mustache/email/html
bodyAttr.put("magicLink", link); | ||
emailTemplateProvider | ||
.setRealm(realm) | ||
.setUser(user) | ||
.setAttribute("realmName", realmName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe it is still used in the customizations. Could you please also check the https://github.com/p2-inc/keycloak-themes/blob/main/src/main/resources/theme/mustache/email/html/magic-link-continuation-email.mustache#L3
Closes #97