Add password reset.
This commit is contained in:
parent
a17b261379
commit
6af164f27b
10 changed files with 127 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
<h2>Invalid Token</h2>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<h2>Password Reset for <%= @user.nickname %></h2>
|
||||
<%= form_for @conn, util_path(@conn, :password_reset), [as: "data"], fn f -> %>
|
||||
<%= label f, :password, "Password" %>
|
||||
<%= password_input f, :password %>
|
||||
<br>
|
||||
|
||||
<%= label f, :password_confirmation, "Confirmation" %>
|
||||
<%= password_input f, :password_confirmation %>
|
||||
<br>
|
||||
<%= hidden_input f, :token, value: @token.token %>
|
||||
<%= submit "Reset" %>
|
||||
<% end %>
|
||||
|
|
@ -0,0 +1 @@
|
|||
<h2>Password reset failed</h2>
|
||||
|
|
@ -0,0 +1 @@
|
|||
<h2>Password changed!</h2>
|
||||
Loading…
Add table
Add a link
Reference in a new issue