Browse Source

Remove Devise mailer views

pull/241/head
baarkerlounger 3 years ago
parent
commit
351755051d
  1. 8
      app/views/devise/mailer/_password_change_forgotten.html.erb
  2. 6
      app/views/devise/mailer/_password_change_initial.html.erb
  3. 5
      app/views/devise/mailer/confirmation_instructions.html.erb
  4. 7
      app/views/devise/mailer/email_changed.html.erb
  5. 3
      app/views/devise/mailer/password_change.html.erb
  6. 5
      app/views/devise/mailer/reset_password_instructions.html.erb
  7. 7
      app/views/devise/mailer/unlock_instructions.html.erb

8
app/views/devise/mailer/_password_change_forgotten.html.erb

@ -1,8 +0,0 @@
<p>Hello <%= @resource.email %>!</p>
<p>Someone has requested a link to change your password. You can do this through the link below.</p>
<p><%= govuk_link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p>
<p>If you didn't request this, please ignore this email.</p>
<p>Your password won't change until you access the link above and create a new one.</p>

6
app/views/devise/mailer/_password_change_initial.html.erb

@ -1,6 +0,0 @@
<p>Hello <%= @resource.name %>!</p>
<p>An account has been created for you to submit CORE data on behalf of <%= @resource.organisation.name %>.</p>
<p>Your username is <%= @resource.email %>, use the link below to set your password.
<p><%= govuk_link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p>

5
app/views/devise/mailer/confirmation_instructions.html.erb

@ -1,5 +0,0 @@
<p>Welcome <%= @email %>!</p>
<p>You can confirm your account email through the link below:</p>
<p><%= govuk_link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %></p>

7
app/views/devise/mailer/email_changed.html.erb

@ -1,7 +0,0 @@
<p>Hello <%= @email %>!</p>
<% if @resource.try(:unconfirmed_email?) %>
<p>We're contacting you to notify you that your email is being changed to <%= @resource.unconfirmed_email %>.</p>
<% else %>
<p>We're contacting you to notify you that your email has been changed to <%= @resource.email %>.</p>
<% end %>

3
app/views/devise/mailer/password_change.html.erb

@ -1,3 +0,0 @@
<p>Hello <%= @resource.email %>!</p>
<p>We're contacting you to notify you that your password has been changed.</p>

5
app/views/devise/mailer/reset_password_instructions.html.erb

@ -1,5 +0,0 @@
<% if @resource.last_sign_in_at.nil? %>
<%= render partial: "password_change_initial" %>
<% else %>
<%= render partial: "password_change_forgotten" %>
<% end %>

7
app/views/devise/mailer/unlock_instructions.html.erb

@ -1,7 +0,0 @@
<p>Hello <%= @resource.email %>!</p>
<p>Your account has been locked due to an excessive number of unsuccessful sign in attempts.</p>
<p>Click the link below to unlock your account:</p>
<p><%= govuk_link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token) %></p>
Loading…
Cancel
Save