Current section
Files
Jump to
Current section
Files
priv/templates/phx.gen.auth/reset_password_edit.html.eex
<h1>Reset password</h1>
<%%= form_for @changeset, Routes.<%= schema.route_helper %>_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 %>
<%%= label f, :password, "New password" %>
<%%= password_input f, :password, required: true %>
<%%= error_tag f, :password %>
<%%= label f, :password_confirmation, "Confirm new password" %>
<%%= password_input f, :password_confirmation, required: true %>
<%%= error_tag f, :password_confirmation %>
<div>
<%%= submit "Reset password" %>
</div>
<%% end %>
<p>
<%%= link "Register", to: Routes.<%= schema.route_helper %>_registration_path(@conn, :new) %> |
<%%= link "Login", to: Routes.<%= schema.route_helper %>_session_path(@conn, :new) %>
</p>