From 351755051de5a16b3160f878bf13a186616b1375 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Mon, 24 Jan 2022 13:34:16 +0000 Subject: [PATCH] Remove Devise mailer views --- .../devise/mailer/_password_change_forgotten.html.erb | 8 -------- app/views/devise/mailer/_password_change_initial.html.erb | 6 ------ .../devise/mailer/confirmation_instructions.html.erb | 5 ----- app/views/devise/mailer/email_changed.html.erb | 7 ------- app/views/devise/mailer/password_change.html.erb | 3 --- .../devise/mailer/reset_password_instructions.html.erb | 5 ----- app/views/devise/mailer/unlock_instructions.html.erb | 7 ------- 7 files changed, 41 deletions(-) delete mode 100644 app/views/devise/mailer/_password_change_forgotten.html.erb delete mode 100644 app/views/devise/mailer/_password_change_initial.html.erb delete mode 100644 app/views/devise/mailer/confirmation_instructions.html.erb delete mode 100644 app/views/devise/mailer/email_changed.html.erb delete mode 100644 app/views/devise/mailer/password_change.html.erb delete mode 100644 app/views/devise/mailer/reset_password_instructions.html.erb delete mode 100644 app/views/devise/mailer/unlock_instructions.html.erb diff --git a/app/views/devise/mailer/_password_change_forgotten.html.erb b/app/views/devise/mailer/_password_change_forgotten.html.erb deleted file mode 100644 index 894cbda1d..000000000 --- a/app/views/devise/mailer/_password_change_forgotten.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -

Hello <%= @resource.email %>!

- -

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

- -

<%= govuk_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.

diff --git a/app/views/devise/mailer/_password_change_initial.html.erb b/app/views/devise/mailer/_password_change_initial.html.erb deleted file mode 100644 index e4437a639..000000000 --- a/app/views/devise/mailer/_password_change_initial.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -

Hello <%= @resource.name %>!

- -

An account has been created for you to submit CORE data on behalf of <%= @resource.organisation.name %>.

- -

Your username is <%= @resource.email %>, use the link below to set your password. -

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

diff --git a/app/views/devise/mailer/confirmation_instructions.html.erb b/app/views/devise/mailer/confirmation_instructions.html.erb deleted file mode 100644 index fac57c4a2..000000000 --- a/app/views/devise/mailer/confirmation_instructions.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -

Welcome <%= @email %>!

- -

You can confirm your account email through the link below:

- -

<%= govuk_link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %>

diff --git a/app/views/devise/mailer/email_changed.html.erb b/app/views/devise/mailer/email_changed.html.erb deleted file mode 100644 index 32f4ba803..000000000 --- a/app/views/devise/mailer/email_changed.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -

Hello <%= @email %>!

- -<% if @resource.try(:unconfirmed_email?) %> -

We're contacting you to notify you that your email is being changed to <%= @resource.unconfirmed_email %>.

-<% else %> -

We're contacting you to notify you that your email has been changed to <%= @resource.email %>.

-<% end %> diff --git a/app/views/devise/mailer/password_change.html.erb b/app/views/devise/mailer/password_change.html.erb deleted file mode 100644 index b41daf476..000000000 --- a/app/views/devise/mailer/password_change.html.erb +++ /dev/null @@ -1,3 +0,0 @@ -

Hello <%= @resource.email %>!

- -

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

diff --git a/app/views/devise/mailer/reset_password_instructions.html.erb b/app/views/devise/mailer/reset_password_instructions.html.erb deleted file mode 100644 index dd4412b35..000000000 --- a/app/views/devise/mailer/reset_password_instructions.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<% if @resource.last_sign_in_at.nil? %> - <%= render partial: "password_change_initial" %> -<% else %> - <%= render partial: "password_change_forgotten" %> -<% end %> diff --git a/app/views/devise/mailer/unlock_instructions.html.erb b/app/views/devise/mailer/unlock_instructions.html.erb deleted file mode 100644 index a36e910b5..000000000 --- a/app/views/devise/mailer/unlock_instructions.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -

Hello <%= @resource.email %>!

- -

Your account has been locked due to an excessive number of unsuccessful sign in attempts.

- -

Click the link below to unlock your account:

- -

<%= govuk_link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token) %>