Skip to content

Commit

Permalink
Merge 9ebf9ed into e92eb88
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaburgan committed Jun 29, 2019
2 parents e92eb88 + 9ebf9ed commit eafab7f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/devise/mailer/confirmation_instructions.markerb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= t('devise.mailer.welcome', :email => @resource.email) %>
<%= t('devise.mailer.welcome', :email => @resource.username) %>

<%= t('.you_can_confirm') %>

Expand Down
4 changes: 3 additions & 1 deletion app/views/devise/mailer/reset_password_instructions.markerb
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<%= t('devise.mailer.hello', :email => @resource.email) %>
<%= t('devise.mailer.hello', :email => @resource.username) %>

<%= t('.someone_requested') %>

[<%= t('.change') %>][1]

[1]: <%= edit_password_url(@resource, :reset_password_token => @token) %>

<%= t('.then_connect', username: @resource.username) %>

<%= t('.wont_change') %>

<%= t('.ignore') %>
2 changes: 1 addition & 1 deletion app/views/devise/mailer/unlock_instructions.markerb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<%= t('devise.mailer.hello', :email => @resource.email) %>
<%= t('devise.mailer.hello', :email => @resource.username) %>

<%= t('.account_locked') %>

Expand Down
1 change: 1 addition & 0 deletions config/locales/devise/devise.en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ en:
someone_requested: Someone has requested a link to change your password. If
it was you, you can do this through the link below.
change: Change my password
then_connect: Once changed, you will be able to connect using your username "%{username}" and your chosen password
wont_change: Your password won't change until you access the link above and
create a new one.
ignore: If you didn't request this, please ignore this email.
Expand Down
1 change: 1 addition & 0 deletions spec/workers/reset_password_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
mail = Devise.mailer.deliveries.last
expect(mail.to).to eq([alice.email])
expect(mail.body).to include("change your password")
expect(mail.body).to include(alice.username)
end
end
end

0 comments on commit eafab7f

Please sign in to comment.