debshots/app/views/devise/sessions/new.slim
Christoph Haas 898dd81c6b Playing with OmniAuth
However OmniAuth is mainly used for authorization. So let's try a more
lightweight approach with just OpenID.
2017-04-15 23:08:25 +02:00

50 lines
1.5 KiB
Text

// Login form
.row
.small-6.columns.small-centered
div.callout.primary
p
' This site yet only uses user accounts for moderators to manage screenshots.
' It is planned however to allow you to register and manager your own uploads
' more easily. Please have a little patience - thanks.
h2 Login (Moderators only)
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
.small-6.columns
= f.label :email
.small-6.columns
= f.email_field :email, autofocus: true
.small-6.columns
= f.label :password
.small-6.columns
= f.password_field :password, autocomplete: "off"
/ - if devise_mapping.rememberable?
/ .small-6.columns
/ = f.check_box :remember_me
/ .small-6.columns
/ = f.label :remember_me
= f.submit "Log in", class: 'button'
/ = render "devise/shared/links"
/ h1 Experimental SSL certificate Debian SSO auth
/
/ = link_to 'log in using your secure certificate', users_debian_sso_path
/ = link_to "Sign in with Launchpad", user_launchpad_omniauth_authorize_path
/ = link_to "Sign in with Google", user_google_oauth2_omniauth_authorize_path
= link_to "Sign in with Launchpad", user_launchpad_omniauth_authorize_path
div
= link_to image_tag('/images/sso/google.png'), user_google_oauth2_omniauth_authorize_path
div
= link_to image_tag('/images/sso/amazon.png'), user_amazon_omniauth_authorize_path
div
stackexchange