adds admin password reset link

fixes #83
This commit is contained in:
Mark Moser 2016-11-12 12:56:43 -06:00
parent 3b71ae09dc
commit 5dd4846318

View File

@ -5,6 +5,13 @@
<h1>Admin Login</h1> <h1>Admin Login</h1>
<%= form_for :auth, url: admin_login_path do |form| %> <%= form_for :auth, url: admin_login_path do |form| %>
<% if flash[:error].present? %>
<div class="form-group">
Need a <%= link_to "password reset", admin_reset_request_path %>?
</div>
<% end %>
<div class="form-group"> <div class="form-group">
<%= form.label :email %> <%= form.label :email %>
<%= form.email_field :email %> <%= form.email_field :email %>
@ -16,4 +23,5 @@
</div> </div>
<%= submit_tag "Log in" %> <%= submit_tag "Log in" %>
<% end %> <% end %>