Reset password

<.form let={f} for={@changeset} action={Routes.user_reset_password_path(@conn, :update, @token)}> <%= if @changeset.action do %>

Oops, something went wrong! Please check the errors below.

<% end %>
<%= label f, :password, "New Password" %> <%= password_input f, :password, required: true, class: "form-control" %> <%= error_tag f, :password %>
<%= label f, :password_confirmation, "Confirm new password" %> <%= password_input f, :password_confirmation, required: true, class: "form-control" %> <%= error_tag f, :password_confirmation %>
<%= submit "Reset password", class: "btn btn-primary" %>

<%= link "Register", to: Routes.user_registration_path(@conn, :new) %> | <%= link "Log in", to: Routes.user_session_path(@conn, :new) %>