Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #168 from cfpb/verify-message
Browse files Browse the repository at this point in the history
Updates verify message
  • Loading branch information
awolfe76 authored Sep 25, 2017
2 parents 3aef935 + 91b3658 commit a70c4eb
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 2 deletions.
21 changes: 21 additions & 0 deletions keycloak/themes/hmda/login/login-verify-email.ftl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<#import "template.ftl" as layout>
<@layout.registrationLayout; section>
<#if section = "title">
${msg("emailVerifyTitle")}
<#elseif section = "header">
${msg("emailVerifyTitle")}
<#elseif section = "form">
<div class="usa-width-one-whole margin-bottom-1">
<div class="usa-alert usa-alert-${message.type}">
<div class="usa-alert-body">
<h3 style="margin-top: 0;">Verify your email to activate your account</h3>
<p>You have been sent an email with a verification code.</p>
<p>This code will expire in 60 minutes. If you would like a new code or if you haven't received the email, <strong><a style="text-transform: lowercase;" href="${url.loginAction}">${msg("doClickHere")}</a></strong> to send a new one.</p>
</div>
</div>

<p>For help with account-related issues, please contact
<strong><a href="mailto:${properties.supportEmailTo!}?subject=${properties.supportEmailSubject?url('UTF-8')}">${properties.supportEmailTo}</a></strong>.
</p>
</#if>
</@layout.registrationLayout>
1 change: 1 addition & 0 deletions keycloak/themes/hmda/login/messages/messages_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ expiredCodeMessage=&#8226; Your login has timed out. Please log in again.
staleCodeMessage=&#8226; This page is no longer valid. Please log in again.
sessionNotActiveMessage=&#8226; Session not active. Please log in again.
invalidCodeMessage=&#8226; An error occurred, please log in again.
verifyEmailMessage=verifyEmailMessage
4 changes: 4 additions & 0 deletions keycloak/themes/hmda/login/resources/css/hmda.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ h6,
max-width: 450px;
}

.verifyEmailMessage {
margin-top: 4em;
}

.usa-form {
max-width: 450px;
}
Expand Down
9 changes: 7 additions & 2 deletions keycloak/themes/hmda/login/template.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,15 @@
</div>
</#if>

<div class="usa-grid usa-grid-small">
<#assign className="usa-grid usa-grid-small"/>
<#if (displayMessage && message?has_content && message.summary == "verifyEmailMessage")>
<#assign className="usa-grid verifyEmailMessage"/>
</#if>

<div class="${className}">
<div id="kc-content">
<div id="kc-content-wrapper">
<#if displayMessage && message?has_content>
<#if displayMessage && message?has_content && message.summary != "verifyEmailMessage">
<div class="usa-width-one-whole margin-bottom-1">
<div class="usa-alert usa-alert-${message.type}">
<div class="usa-alert-body">
Expand Down

0 comments on commit a70c4eb

Please sign in to comment.