2015-04-30 13:06:18 -04:00
|
|
|
- page_title "Sign in"
|
2016-11-06 13:41:23 -05:00
|
|
|
|
2015-01-07 20:07:36 -05:00
|
|
|
%div
|
2016-09-09 08:21:00 -04:00
|
|
|
- if form_based_providers.any?
|
|
|
|
= render 'devise/shared/tabs_ldap'
|
|
|
|
- else
|
|
|
|
= render 'devise/shared/tabs_normal'
|
|
|
|
.tab-content
|
2017-11-23 08:16:14 -05:00
|
|
|
- if password_authentication_enabled_for_web? || ldap_enabled? || crowd_enabled?
|
2016-09-09 08:21:00 -04:00
|
|
|
= render 'devise/shared/signin_box'
|
2014-07-11 09:05:57 -04:00
|
|
|
|
2016-09-09 08:21:00 -04:00
|
|
|
-# Signup only makes sense if you can also sign-in
|
2017-11-23 08:16:14 -05:00
|
|
|
- if allow_signup?
|
2015-01-07 20:07:36 -05:00
|
|
|
= render 'devise/shared/signup_box'
|
2014-08-11 14:06:15 -04:00
|
|
|
|
2016-09-28 11:13:42 -04:00
|
|
|
-# Show a message if none of the mechanisms above are enabled
|
2017-11-23 08:16:14 -05:00
|
|
|
- if !password_authentication_enabled_for_web? && !ldap_enabled? && !(omniauth_enabled? && devise_mapping.omniauthable?)
|
2016-09-28 11:13:42 -04:00
|
|
|
%div
|
|
|
|
No authentication methods configured.
|
2016-09-09 08:21:00 -04:00
|
|
|
|
2016-09-28 11:13:42 -04:00
|
|
|
- if omniauth_enabled? && devise_mapping.omniauthable? && button_based_providers_enabled?
|
|
|
|
.clearfix
|
|
|
|
= render 'devise/shared/omniauth_box'
|