Skip to content

Commit

Permalink
Remove blank spaces in email links
Browse files Browse the repository at this point in the history
  • Loading branch information
toddkazakov committed May 9, 2023
1 parent 452c59c commit 7e0a42c
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN unset MAVEN_CONFIG && \
./mvnw clean compile package && \
wget -O keycloak-rest-provider.jar https://github.com/toddkazakov/keycloak-user-migration/releases/download/v1.1/keycloak-rest-provider.jar && \
wget -O keycloak-metrics-spi.jar https://github.com/toddkazakov/keycloak-metrics-spi/releases/download/2.5.4-20.0.1/keycloak-metrics-spi-2.5.4.jar && \
wget -O keycloak-home-idp-discovery.jar https://github.com/toddkazakov/keycloak-home-idp-discovery/releases/download/0.2.0/keycloak-home-idp-discovery.jar
wget -O keycloak-home-idp-discovery.jar https://github.com/toddkazakov/keycloak-home-idp-discovery/releases/download/0.3.0/keycloak-home-idp-discovery.jar

FROM alpine:3.15 as release

Expand Down
4 changes: 1 addition & 3 deletions tidepool-theme/email/html/email-verification.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@
Please verify your Tidepool account! The verification link will expire in ${kcSanitize(linkExpirationFormatter(linkExpiration))?no_esc}.
<#elseif section = "actionText">
Verify Your Account
<#elseif section = "actionLink">
${kcSanitize(link)?no_esc}
</#if>
<#elseif section = "actionLink">${kcSanitize(link)?no_esc}</#if>
</@layout.emailLayout>
4 changes: 1 addition & 3 deletions tidepool-theme/email/html/executeActions.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@
${kcSanitize(msg("executeActionsBodyHtml",link, linkExpiration, realmName, requiredActionsText, linkExpirationFormatter(linkExpiration)))?no_esc}
<#elseif section = "actionText">
Update Your Account
<#elseif section = "actionLink">
${kcSanitize(link)?no_esc}
</#if>
<#elseif section = "actionLink">${kcSanitize(link)?no_esc}</#if>
</@layout.emailLayout>
4 changes: 1 addition & 3 deletions tidepool-theme/email/html/identity-provider-link.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@
${kcSanitize(msg("identityProviderLinkBodyHtml", identityProviderAlias, realmName, identityProviderContext.username, link, linkExpiration, linkExpirationFormatter(linkExpiration)))?no_esc}
<#elseif section = "actionText">
Confirm Account Linking
<#elseif section = "actionLink">
${kcSanitize(link)?no_esc}
</#if>
<#elseif section = "actionLink">${kcSanitize(link)?no_esc}</#if>
</@layout.emailLayout>
4 changes: 1 addition & 3 deletions tidepool-theme/email/html/password-reset.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@
You requested a password reset. If you didn't request this, please ignore this email.<br /><br />Otherwise, click the link below. The link will expire in ${kcSanitize(linkExpirationFormatter(linkExpiration))?no_esc}.
<#elseif section = "actionText">
Reset Password
<#elseif section = "actionLink">
${kcSanitize(link)?no_esc}
</#if>
<#elseif section = "actionLink">${kcSanitize(link)?no_esc}</#if>
</@layout.emailLayout>
3 changes: 0 additions & 3 deletions tidepool-theme/login/login-idp-link-email.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
<p id="instruction2" class="instruction">
<a class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonBlockClass!} ${properties.kcButtonLargeClass!} tp-btn-fw" href="${url.loginAction}">${msg("emailLinkIdpResendVerificationCode")}</a>
</p>
<p id="instruction2" class="instruction">
<a class="${properties.kcButtonClass!} ${properties.kcButtonPrimaryClass!} ${properties.kcButtonBlockClass!} ${properties.kcButtonLargeClass!} tp-btn-fw" href="${url.loginAction}">${msg("emailLinkIdpResendVerificationCode")}</a>
</p>
<p id="instruction3" class="instruction">
${msg("emailLinkIdp4")} <a href="${url.loginAction}">${msg("doClickHere")}</a> ${msg("emailLinkIdp5")}
</p>
Expand Down
2 changes: 1 addition & 1 deletion tidepool-theme/login/messages/messages_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ doCreateAccount=Create Account
continue=Continue
keepingYourDataSecure=Keeping your data private and secure is important to us!
next=Next
letsGetStarted=Let''s Get Started
letsGetStarted=Sign in to Tidepool
enterYourEmail=Enter your email address
enterYourUsername=Enter your username
enterYourUsernameOrEmail=Enter your username or email address
Expand Down

0 comments on commit 7e0a42c

Please sign in to comment.