Salsa login works
This commit is contained in:
parent
b2ed771663
commit
bc507cbe39
6 changed files with 84 additions and 51 deletions
|
|
@ -28,9 +28,12 @@
|
|||
/ a href='https://sso.debian.org/' Debian SSO
|
||||
/ ' installed in your browser.
|
||||
|
||||
/ .grid-container
|
||||
/ .text-center
|
||||
|
||||
.grid-container
|
||||
.text-center
|
||||
|
||||
p
|
||||
= link_to (fa_icon 'login', text: 'Login with Debian'), user_salsa_omniauth_authorize_path, class: 'button primary large', method: :post
|
||||
|
||||
/ // Alternative way to display buttons without images. (Amazon wants their own button though.)
|
||||
/ / p
|
||||
/ / = link_to (fa_icon 'google', text: '- Login with Google'), user_google_oauth2_omniauth_authorize_path, class: 'button secondary large'
|
||||
|
|
|
|||
|
|
@ -30,3 +30,5 @@
|
|||
- if current_user.is_admin?
|
||||
h2 Admin
|
||||
p Apparently you are an administrator. Be careful with that thing!
|
||||
|
||||
tt = current_user.inspect
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue