Log in

<.form let={f} for={@conn} action={Routes.<%= schema.route_helper %>_session_path(@conn, :create)} as={:<%= schema.singular %>}> <%%= if @error_message do %>

<%%= @error_message %>

<%% end %> <%%= label f, :email %> <%%= email_input f, :email, required: true %> <%%= label f, :password %> <%%= password_input f, :password, required: true %> <%%= label f, :remember_me, "Keep me logged in for 60 days" %> <%%= checkbox f, :remember_me %>
<%%= submit "Log in" %>

<%%= link "Register", to: Routes.<%= schema.route_helper %>_registration_path(@conn, :new) %> | <%%= link "Forgot your password?", to: Routes.<%= schema.route_helper %>_reset_password_path(@conn, :new) %>