Sign in
<%= form_for @conn, ~p"/sessions", [as: :user], fn f -> %>
<%= if @error_message do %>
<%= link("Resend unlock instructions", to: ~p"/unlocks/new") %>
<%= link("Resend confirmation email", to: ~p"/confirmations/new") %>
<% end %>
<%= link("Forgot your password?", to: ~p"/passwords/new") %>
<%= email_input(f, :email, class: "input", required: true, placeholder: "Email", autofocus: true, pattern: ~S/[^\s]+@[^\s]+\.[^\s]+/) %>
<%= error_tag(f, :email) %>
<%= password_input(f, :password, class: "input", required: true, placeholder: "Password") %>
<%= error_tag(f, :password) %>
<%= checkbox(f, :remember_me) %>
<%= label(f, :remember_me, "Remember me") %>
<%= submit("Sign in", class: "button") %>
<% end %>
Haven't read the
site rules
lately? Make sure you read them before posting or editing metadata!