password reset requests
This commit is contained in:
@ -4,10 +4,6 @@
|
||||
|
||||
<h1>Admin Login</h1>
|
||||
|
||||
<% if flash[:error].present? %>
|
||||
<div class="error"><%= flash[:error] %></div>
|
||||
<% end %>
|
||||
|
||||
<%= form_for :auth, url: admin_login_path do |form| %>
|
||||
<div class="form-group">
|
||||
<%= form.label :email %>
|
||||
|
21
app/views/admin/auth/reset.html.erb
Normal file
21
app/views/admin/auth/reset.html.erb
Normal file
@ -0,0 +1,21 @@
|
||||
<%
|
||||
content_for :main_class, "intro_tpl"
|
||||
%>
|
||||
|
||||
<h1>Password Reset</h1>
|
||||
|
||||
<%= form_for :auth, url: admin_reset_password_path do |form| %>
|
||||
<%= hidden_field_tag :reset_token, params[:reset_token] %>
|
||||
|
||||
<div class="form-group">
|
||||
<%= form.label :password %>
|
||||
<%= form.password_field :password %>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<%= form.label :password_confirmation %>
|
||||
<%= form.password_field :password_confirmation %>
|
||||
</div>
|
||||
|
||||
<%= submit_tag "Reset Password" %>
|
||||
<% end %>
|
17
app/views/admin/auth/reset_request.html.erb
Normal file
17
app/views/admin/auth/reset_request.html.erb
Normal file
@ -0,0 +1,17 @@
|
||||
<%
|
||||
content_for :main_class, "intro_tpl"
|
||||
%>
|
||||
|
||||
<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">
|
||||
<%= form.label :email %>
|
||||
<%= form.email_field :email %>
|
||||
</div>
|
||||
|
||||
<%= submit_tag "Request Password Reset" %>
|
||||
<% end %>
|
@ -1,2 +0,0 @@
|
||||
<h1>Admin::Profile#lost_password</h1>
|
||||
<p>Find me in app/views/admin/profile/lost_password.html.erb</p>
|
Reference in New Issue
Block a user