user mailers

completes #25
This commit is contained in:
Mark Moser
2016-08-24 16:26:07 -05:00
parent 7b51d26295
commit d5a469d736
12 changed files with 97 additions and 10 deletions

View File

@ -3,9 +3,6 @@
%>
<h1>Password Reset</h1>
<%= raw(ap User.find_by(email: 'alan.admin@mailinator.com')) %>
<%= form_for :auth, url: admin_send_reset_path do |form| %>
<div class="form-group">

View File

@ -0,0 +1,13 @@
<row>
<columns class="email-body">
<p>Hey there <%= @user.name %>,</p>
<p>
It looks like you want to reset your password?
If not, it is safe to ignore this email.
Otherwise go to the following link to enter a new password.
</p>
<p>
<%= link_to nil, admin_reset_url(reset_token: @user.reset_token) %>.
</p>
</columns>
</row>

View File

@ -0,0 +1,7 @@
Hey there <%= @user.name %>,
It looks like you want to reset your password?
If not, it is safe to ignore this email.
Otherwise go to the following link to enter a new password:
<%= admin_reset_url(reset_token: @user.reset_token) %>

View File

@ -0,0 +1,15 @@
<row>
<columns class="email-body">
<p>Hey there <%= @user.name %>,</p>
<p>
Looks like you now have access to the skills assessment app.
We've given you a temporary password below. Please sign in an personalize it asap.
</p>
<p>
Password: <%= @password%>
</p>
<p>
<%= link_to nil, admin_url %>.
</p>
</columns>
</row>

View File

@ -0,0 +1,8 @@
Hey there <%= @user.name %>,
Looks like you now have access to the skills assessment app.
We've given you a temporary password below. Please sign in an personalize it asap.
Password: <%= @password %>
<%= admin_url %>.