2019-12-26 22:10:19 +05:30
|
|
|
- if any_form_based_providers_enabled?
|
2016-11-03 12:29:30 +05:30
|
|
|
- if crowd_enabled?
|
2019-02-15 15:39:39 +05:30
|
|
|
.login-box.tab-pane{ id: "crowd", role: 'tabpanel', class: active_when(form_based_auth_provider_has_active_class?(:crowd)) }
|
2016-11-03 12:29:30 +05:30
|
|
|
.login-body
|
|
|
|
= render 'devise/sessions/new_crowd'
|
2019-09-04 21:01:54 +05:30
|
|
|
|
|
|
|
= render_if_exists 'devise/sessions/new_kerberos_tab'
|
|
|
|
|
2016-11-03 12:29:30 +05:30
|
|
|
- @ldap_servers.each_with_index do |server, i|
|
2019-02-15 15:39:39 +05:30
|
|
|
.login-box.tab-pane{ id: "#{server['provider_name']}", role: 'tabpanel', class: active_when(i.zero? && form_based_auth_provider_has_active_class?(:ldapmain)) }
|
2016-11-03 12:29:30 +05:30
|
|
|
.login-body
|
|
|
|
= render 'devise/sessions/new_ldap', server: server
|
2019-09-04 21:01:54 +05:30
|
|
|
|
|
|
|
= render_if_exists 'devise/sessions/new_smartcard'
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
- if password_authentication_enabled_for_web?
|
|
|
|
.login-box.tab-pane{ id: 'login-pane', role: 'tabpanel' }
|
2016-11-03 12:29:30 +05:30
|
|
|
.login-body
|
|
|
|
= render 'devise/sessions/new_base'
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
- elsif password_authentication_enabled_for_web?
|
2017-08-17 22:00:37 +05:30
|
|
|
.login-box.tab-pane.active{ id: 'login-pane', role: 'tabpanel' }
|
2016-11-03 12:29:30 +05:30
|
|
|
.login-body
|
2015-04-26 12:48:37 +05:30
|
|
|
= render 'devise/sessions/new_base'
|
2019-12-21 20:55:43 +05:30
|
|
|
|
|
|
|
- if experiment_enabled?(:signup_flow)
|
|
|
|
%p.light.mt-2
|
|
|
|
= _("Don't have an account yet?")
|
|
|
|
= link_to _("Register now"), new_registration_path(:user)
|