b95ef77e23
We were doing all kinds of code gymnastics to "enable" Crowd in the feature spec and this would sometimes cause a transient failure. Really what it's testing is if the Crowd login form shows when Crowd's enabled, so this is much better suited to a view spec.
19 lines
724 B
Text
19 lines
724 B
Text
- page_title "Sign in"
|
|
%div
|
|
- if signin_enabled? || ldap_enabled? || crowd_enabled?
|
|
= render 'devise/shared/signin_box'
|
|
|
|
-# Omniauth fits between signin/ldap signin and signup and does not have a surrounding box
|
|
- if omniauth_enabled? && devise_mapping.omniauthable?
|
|
.clearfix.prepend-top-20
|
|
= render 'devise/shared/omniauth_box'
|
|
|
|
-# Signup only makes sense if you can also sign-in
|
|
- if signin_enabled? && signup_enabled?
|
|
.prepend-top-20
|
|
= render 'devise/shared/signup_box'
|
|
|
|
-# Show a message if none of the mechanisms above are enabled
|
|
- if !signin_enabled? && !ldap_enabled? && !(omniauth_enabled? && devise_mapping.omniauthable?)
|
|
%div
|
|
No authentication methods configured.
|