Add password reset.

This commit is contained in:
Roger Braun 2017-10-19 17:37:24 +02:00
commit 6af164f27b
10 changed files with 127 additions and 0 deletions

View file

@ -0,0 +1 @@
<h2>Invalid Token</h2>

View file

@ -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 %>

View file

@ -0,0 +1 @@
<h2>Password reset failed</h2>

View file

@ -0,0 +1 @@
<h2>Password changed!</h2>