Skip to content

Commit

Permalink
refactor(TrustedCompanion.java): Corrected indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
br648 committed Oct 24, 2024
1 parent c3214fa commit 1d1f4fb
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ private static boolean sendAcceptDependentEmail(OtpUser dependentUser, OtpUser r
// A HashMap is needed instead of a Map for template data to be serialized to the template renderer.
Map<String, Object> templateData = new HashMap<>(
Map.of(
"acceptDependentLinkAnchorLabel", acceptDependentLinkLabel,
"acceptDependentLinkLabelAndUrl", label(acceptDependentLinkLabel, acceptDependentUrl, locale),
"acceptDependentUrl", getAcceptDependentUrl(dependentUser),
"emailFooter", Message.ACCEPT_DEPENDENT_EMAIL_FOOTER.get(locale),
"acceptDependentLinkAnchorLabel", acceptDependentLinkLabel,
"acceptDependentLinkLabelAndUrl", label(acceptDependentLinkLabel, acceptDependentUrl, locale),
"acceptDependentUrl", getAcceptDependentUrl(dependentUser),
"emailFooter", Message.ACCEPT_DEPENDENT_EMAIL_FOOTER.get(locale),
// TODO: The user's email address isn't very personal, but that is all I have to work with! Suggetions?
"emailGreeting", String.format("%s%s", dependentUser.email, Message.ACCEPT_DEPENDENT_EMAIL_GREETING.get(locale)),
// TODO: This is required in the `OtpUserContainer.ftl` template. Not sure what to provide. Suggestions?
"manageLinkUrl", String.format("%s%s", OTP_UI_URL, SETTINGS_PATH),
"manageLinkText", Message.ACCEPT_DEPENDENT_EMAIL_MANAGE.get(locale)
"manageLinkText", Message.ACCEPT_DEPENDENT_EMAIL_MANAGE.get(locale)
)
);

Expand Down

0 comments on commit 1d1f4fb

Please sign in to comment.