forked from p2-inc/keycloak-magic-link
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
p2-inc#97 resolve bug with empty strings and enhance the sent email's…
… body
- Loading branch information
1 parent
7934933
commit cfdbf5e
Showing
7 changed files
with
21 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/resources/theme-resources/templates/html/magic-link-continuation-email.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<#import "template.ftl" as layout> | ||
<@layout.emailLayout> | ||
${kcSanitize(msg("magicLinkContinuationBodyHtml", realmName, magicLink))?no_esc} | ||
${kcSanitize(msg("magicLinkContinuationBodyHtml", loginSubjectName, magicLink))?no_esc} | ||
</@layout.emailLayout> |
2 changes: 1 addition & 1 deletion
2
src/main/resources/theme-resources/templates/html/magic-link-email.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<#import "template.ftl" as layout> | ||
<@layout.emailLayout> | ||
${kcSanitize(msg("magicLinkBodyHtml", realmName, magicLink))?no_esc} | ||
${kcSanitize(msg("magicLinkBodyHtml", loginSubjectName, magicLink))?no_esc} | ||
</@layout.emailLayout> |
2 changes: 1 addition & 1 deletion
2
src/main/resources/theme-resources/templates/html/otp-email.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<#import "template.ftl" as layout> | ||
<@layout.emailLayout> | ||
${kcSanitize(msg("otpBodyHtml", realmName, code))?no_esc} | ||
${kcSanitize(msg("otpBodyHtml", loginSubjectName, code))?no_esc} | ||
</@layout.emailLayout> |
2 changes: 1 addition & 1 deletion
2
src/main/resources/theme-resources/templates/text/magic-link-continuation-email.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<#ftl output_format="plainText"> | ||
${msg("magicLinkContinuationBody", realmName, magicLink)} | ||
${msg("magicLinkContinuationBody", loginSubjectName, magicLink)} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/theme-resources/templates/text/magic-link-email.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<#ftl output_format="plainText"> | ||
${msg("magicLinkBody", realmName, magicLink)} | ||
${msg("magicLinkBody", loginSubjectName, magicLink)} |
2 changes: 1 addition & 1 deletion
2
src/main/resources/theme-resources/templates/text/otp-email.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<#ftl output_format="plainText"> | ||
${msg("otpBody", realmName, code)} | ||
${msg("otpBody", loginSubjectName, code)} |