diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-05-25 17:53:13 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-06-16 20:10:52 -0400 |
commit | 933cd3478d8930fa5472d509d78bb7dd481d2360 (patch) | |
tree | 9b2a757bf9d3a2f58c1e4100c5eb2e8be3e61d07 /app/views/devise | |
parent | 3a5315d3ceed547de47685ba1a57b31cc8b67c96 (diff) | |
download | gitlab-ce-933cd3478d8930fa5472d509d78bb7dd481d2360.tar.gz |
Customize the Devise `unlock_instructions` email
Diffstat (limited to 'app/views/devise')
-rw-r--r-- | app/views/devise/mailer/unlock_instructions.html.haml | 19 | ||||
-rw-r--r-- | app/views/devise/mailer/unlock_instructions.text.erb | 7 |
2 files changed, 16 insertions, 10 deletions
diff --git a/app/views/devise/mailer/unlock_instructions.html.haml b/app/views/devise/mailer/unlock_instructions.html.haml index 52b327e20c5..9990d1ccac6 100644 --- a/app/views/devise/mailer/unlock_instructions.html.haml +++ b/app/views/devise/mailer/unlock_instructions.html.haml @@ -1,10 +1,9 @@ -%p -Hello #{@resource.name}! - -%p - Your GitLab account has been locked due to an excessive amount of unsuccessful - sign in attempts. Your account will automatically unlock in - = time_ago_in_words(Devise.unlock_in.from_now) - or you may click the link below to unlock now. - -%p= link_to 'Unlock your account', unlock_url(@resource, unlock_token: @token) +.center + #content + %h2 Hello, #{@resource.name}! + %p + Your GitLab account has been locked due to an excessive amount of unsuccessful + sign in attempts. Your account will automatically unlock in #{time_ago_in_words(Devise.unlock_in.from_now)} + or you may click the link below to unlock now. + #cta + = link_to('Unlock account', unlock_url(@resource, unlock_token: @token)) diff --git a/app/views/devise/mailer/unlock_instructions.text.erb b/app/views/devise/mailer/unlock_instructions.text.erb new file mode 100644 index 00000000000..3aea3e20145 --- /dev/null +++ b/app/views/devise/mailer/unlock_instructions.text.erb @@ -0,0 +1,7 @@ +Hello, <%= @resource.name %>! + +Your GitLab account has been locked due to an excessive amount of unsuccessful +sign in attempts. Your account will automatically unlock in <%= time_ago_in_words(Devise.unlock_in.from_now) %> +or you may click the link below to unlock now. + +<%= unlock_url(@resource, unlock_token: @token) %> |