2020-12-15 14:24:14 +01:00
|
|
|
<h1>Reset password</h1>
|
|
|
|
|
|
|
|
<%= form_for @changeset, Routes.user_reset_password_path(@conn, :update, @token), fn f -> %>
|
|
|
|
<%= if @changeset.action do %>
|
|
|
|
<div class="alert alert-danger">
|
|
|
|
<p>Oops, something went wrong! Please check the errors below.</p>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
2021-01-08 14:41:37 +01:00
|
|
|
<%= password_input f, :password, required: true, placeholder: "New password" %>
|
2020-12-15 14:24:14 +01:00
|
|
|
<%= error_tag f, :password %>
|
|
|
|
|
2021-01-08 14:41:37 +01:00
|
|
|
<br />
|
|
|
|
|
|
|
|
<%= password_input f, :password_confirmation, required: true, placeholder: "New password confirmation" %>
|
2020-12-15 14:24:14 +01:00
|
|
|
<%= error_tag f, :password_confirmation %>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
<%= submit "Reset password" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<%= link "Register", to: Routes.user_registration_path(@conn, :new) %> |
|
|
|
|
<%= link "Log in", to: Routes.user_session_path(@conn, :new) %>
|
|
|
|
</p>
|