2020-07-28 22:56:26 +02:00
|
|
|
h1 Sign in
|
|
|
|
|
|
|
|
= form_for @conn, Routes.session_path(@conn, :create), [as: :user], fn f ->
|
|
|
|
= if @error_message do
|
|
|
|
.alert.alert-danger
|
|
|
|
p = @error_message
|
2020-09-27 06:03:34 +02:00
|
|
|
p = link "Resend unlock instructions", to: Routes.unlock_path(@conn, :new)
|
|
|
|
p = link "Resend confirmation email", to: Routes.confirmation_path(@conn, :new)
|
2020-07-28 22:56:26 +02:00
|
|
|
|
|
|
|
p = link "Forgot your password?", to: Routes.password_path(@conn, :new)
|
|
|
|
|
|
|
|
.field
|
|
|
|
= email_input f, :email, class: "input", required: true, placeholder: "Email", autofocus: true, pattern: ".*@.*"
|
|
|
|
= 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!
|