Implement working mailer and controller

This commit is contained in:
James Espinosa
2013-12-04 00:57:32 -06:00
parent 1a3d6d690c
commit da1845e8f9
14 changed files with 132 additions and 7 deletions
@@ -0,0 +1,38 @@
<div class="row-fluid">
<h2 align="center">MetaCorp</h2>
<h3 align="center">A GoatGroup Company</h3>
<div class="span12">
<div class="row-fluid">
<div class="span4 offset4">
<!-- TODO -->
<!-- Create a form that allows a user to reset their password -->
<!-- This form is just a placeholder with no working functionality -->
<div class="signup">
<%= form_tag "reset_passwords", :class=> "signup-wrapper" do %>
<div class="header">
<h2>Create Password</h2>
<p>Fill out the form below to create a new password.</p>
</div>
<div class="content">
<%= label_tag "Enter Password" %>
<%= password_field_tag :password, params[:password], {:class => "input input-block-level"} %>
<%= label_tag "Confirm Password" %>
<%= password_field_tag :confirm_password, params[:confirm_password], {:class => "input input-block-level"} %>
</div>
<div class="actions">
<%= submit_tag "Create Password", {:class => "btn btn-danger btn-large"} %>
</div>
<div class="clearfix"></div>
<% end %>
</div>
</div>
</div>
</div>
</div>
+11 -2
View File
@@ -6,8 +6,17 @@
<body>
<h1>Need help logging in?</h1>
<p>
To reset your RailsGoat password, simply click on the
following link and follow the instructions: <%= @token %>.<br/>
A password reset was requested for your user account.<br>
<br>
To reset your MetaCorp password, simply click on the
following link and follow the instructions:<br>
<br>
<%= link_to "Click here to reset your password", @url %><br>
<br>
If you don't want to change your password, you can ignore this email.
</p>
<p>Thanks, and have a great day!</p>
</body>
@@ -1,7 +1,13 @@
Need help logging in?
==========================================================
To reset your RailsGoat password, simply click on the
following link and follow the instructions: <%= @token %>.
A password reset was requested for your user account.
To reset your MetaCorp password, simply copy the
following link and follow the instructions:
<%= @url %>
If you don't want to change your password, you can ignore this email.
Thanks, and have a great day!
+1 -1
View File
@@ -19,7 +19,7 @@
</div>
<div class="actions">
<%= submit_tag "Send Forgot Password Email", {:class => "btn btn-danger btn-large"} %>
<%= submit_tag "Reset Password", {:class => "btn btn-danger btn-large"} %>
</div>
<div class="clearfix"></div>