Log in
<.form let={f} for={@conn} action={Routes.user_session_path(@conn, :create)} as={:user}>
<%= if @error_message do %>
<% end %>
<%= label f, :email %>
<%= email_input f, :email, required: true, class: "form-control" %>
<%= label f, :password %>
<%= password_input f, :password, required: true, class: "form-control" %>
<%= label f, :remember_me, "Keep me logged in for 60 days" %>
<%= checkbox f, :remember_me, class: "form-check-input" %>
<%= submit "Log in", class: "btn btn-primary" %>
<%= link "Register", to: Routes.user_registration_path(@conn, :new) %> |
<%= link "Forgot your password?", to: Routes.user_reset_password_path(@conn, :new) %>