about summary refs log tree commit diff stats
path: root/app/views/devise/mailer
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-06-25 12:30:31 -0400
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-06-25 12:30:31 -0400
commit7e2e42379cb40a500eb8a236c05788eb3e84d141 (patch)
tree784dfe04f81b034889b96b5c251923da7e6f3a1e /app/views/devise/mailer
parent275218aeaf24d4f9d58589cf68ec6647f0a65050 (diff)
downloadthoughts-7e2e42379cb40a500eb8a236c05788eb3e84d141.tar.gz
thoughts-7e2e42379cb40a500eb8a236c05788eb3e84d141.tar.bz2
thoughts-7e2e42379cb40a500eb8a236c05788eb3e84d141.zip
Added logging in and logging out
Diffstat (limited to 'app/views/devise/mailer')
-rw-r--r--app/views/devise/mailer/confirmation_instructions.html.erb5
-rw-r--r--app/views/devise/mailer/email_changed.html.erb7
-rw-r--r--app/views/devise/mailer/password_change.html.erb3
-rw-r--r--app/views/devise/mailer/reset_password_instructions.html.erb8
-rw-r--r--app/views/devise/mailer/unlock_instructions.html.erb7
5 files changed, 30 insertions, 0 deletions
diff --git a/app/views/devise/mailer/confirmation_instructions.html.erb b/app/views/devise/mailer/confirmation_instructions.html.erb new file mode 100644 index 0000000..dc55f64 --- /dev/null +++ b/app/views/devise/mailer/confirmation_instructions.html.erb
@@ -0,0 +1,5 @@
1<p>Welcome <%= @email %>!</p>
2
3<p>You can confirm your account email through the link below:</p>
4
5<p><%= link_to 'Confirm my account', confirmation_url(@resource, confirmation_token: @token) %></p>
diff --git a/app/views/devise/mailer/email_changed.html.erb b/app/views/devise/mailer/email_changed.html.erb new file mode 100644 index 0000000..32f4ba8 --- /dev/null +++ b/app/views/devise/mailer/email_changed.html.erb
@@ -0,0 +1,7 @@
1<p>Hello <%= @email %>!</p>
2
3<% if @resource.try(:unconfirmed_email?) %>
4 <p>We're contacting you to notify you that your email is being changed to <%= @resource.unconfirmed_email %>.</p>
5<% else %>
6 <p>We're contacting you to notify you that your email has been changed to <%= @resource.email %>.</p>
7<% end %>
diff --git a/app/views/devise/mailer/password_change.html.erb b/app/views/devise/mailer/password_change.html.erb new file mode 100644 index 0000000..b41daf4 --- /dev/null +++ b/app/views/devise/mailer/password_change.html.erb
@@ -0,0 +1,3 @@
1<p>Hello <%= @resource.email %>!</p>
2
3<p>We're contacting you to notify you that your password has been changed.</p>
diff --git a/app/views/devise/mailer/reset_password_instructions.html.erb b/app/views/devise/mailer/reset_password_instructions.html.erb new file mode 100644 index 0000000..f667dc1 --- /dev/null +++ b/app/views/devise/mailer/reset_password_instructions.html.erb
@@ -0,0 +1,8 @@
1<p>Hello <%= @resource.email %>!</p>
2
3<p>Someone has requested a link to change your password. You can do this through the link below.</p>
4
5<p><%= link_to 'Change my password', edit_password_url(@resource, reset_password_token: @token) %></p>
6
7<p>If you didn't request this, please ignore this email.</p>
8<p>Your password won't change until you access the link above and create a new one.</p>
diff --git a/app/views/devise/mailer/unlock_instructions.html.erb b/app/views/devise/mailer/unlock_instructions.html.erb new file mode 100644 index 0000000..41e148b --- /dev/null +++ b/app/views/devise/mailer/unlock_instructions.html.erb
@@ -0,0 +1,7 @@
1<p>Hello <%= @resource.email %>!</p>
2
3<p>Your account has been locked due to an excessive number of unsuccessful sign in attempts.</p>
4
5<p>Click the link below to unlock your account:</p>
6
7<p><%= link_to 'Unlock my account', unlock_url(@resource, unlock_token: @token) %></p>