Customize the Devise unlock_instructions
email
This commit is contained in:
parent
3a5315d3ce
commit
933cd3478d
2 changed files with 16 additions and 10 deletions
|
@ -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))
|
||||
|
|
7
app/views/devise/mailer/unlock_instructions.text.erb
Normal file
7
app/views/devise/mailer/unlock_instructions.text.erb
Normal file
|
@ -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) %>
|
Loading…
Reference in a new issue