From 6045b6cb1880b27e8b21799b9501a794a5f5b88b Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 5 Mar 2016 22:43:05 +0100 Subject: Customizing devise views and controllers --- app/views/auth/mailer/password_change.html.erb | 3 +++ app/views/auth/mailer/reset_password_instructions.html.erb | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 app/views/auth/mailer/password_change.html.erb create mode 100644 app/views/auth/mailer/reset_password_instructions.html.erb (limited to 'app/views/auth/mailer') diff --git a/app/views/auth/mailer/password_change.html.erb b/app/views/auth/mailer/password_change.html.erb new file mode 100644 index 000000000..b41daf476 --- /dev/null +++ b/app/views/auth/mailer/password_change.html.erb @@ -0,0 +1,3 @@ +

Hello <%= @resource.email %>!

+ +

We're contacting you to notify you that your password has been changed.

diff --git a/app/views/auth/mailer/reset_password_instructions.html.erb b/app/views/auth/mailer/reset_password_instructions.html.erb new file mode 100644 index 000000000..f667dc12f --- /dev/null +++ b/app/views/auth/mailer/reset_password_instructions.html.erb @@ -0,0 +1,8 @@ +

Hello <%= @resource.email %>!

+ +

Someone has requested a link to change your password. You can do this through the link below.

+ +

<%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %>

+ +

If you didn't request this, please ignore this email.

+

Your password won't change until you access the link above and create a new one.

-- cgit