2020-07-28 22:56:26 +02:00
|
|
|
h1 Sign in
|
|
|
|
|
2024-04-29 02:55:27 +02:00
|
|
|
= form_for @conn, ~p"/sessions", [as: :user], fn f ->
|
2020-07-28 22:56:26 +02:00
|
|
|
= if @error_message do
|
|
|
|
.alert.alert-danger
|
|
|
|
p = @error_message
|
2024-04-29 02:55:27 +02:00
|
|
|
p = link "Resend unlock instructions", to: ~p"/unlocks/new"
|
|
|
|
p = link "Resend confirmation email", to: ~p"/confirmations/new"
|
2020-07-28 22:56:26 +02:00
|
|
|
|
2024-04-29 02:55:27 +02:00
|
|
|
p = link "Forgot your password?", to: ~p"/passwords/new"
|
2020-07-28 22:56:26 +02:00
|
|
|
|
|
|
|
.field
|
2020-11-28 02:14:26 +01:00
|
|
|
= email_input f, :email, class: "input", required: true, placeholder: "Email", autofocus: true, pattern: ~S/[^\s]+@[^\s]+\.[^\s]+/
|
2020-07-28 22:56:26 +02:00
|
|
|
= error_tag f, :email
|
|
|
|
|
|
|
|
.field
|
|
|
|
= password_input f, :password, class: "input", required: true, placeholder: "Password"
|
|
|
|
= error_tag f, :password
|
|
|
|
|
|
|
|
.field
|
2020-09-27 06:03:34 +02:00
|
|
|
=> checkbox f, :remember_me
|
2020-07-28 22:56:26 +02:00
|
|
|
= label f, :remember_me, "Remember me"
|
|
|
|
|
2020-09-27 06:03:34 +02:00
|
|
|
.actions
|
|
|
|
= submit "Sign in", class: "button"
|
2020-07-28 22:56:26 +02:00
|
|
|
|
|
|
|
p
|
|
|
|
strong
|
|
|
|
' Haven't read the
|
|
|
|
a<> href="/pages/rules" site rules
|
|
|
|
' lately? Make sure you read them before posting or editing metadata!
|