1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
- page_title _("Sign in")
- content_for :page_specific_javascripts do
= render_if_exists "layouts/google_tag_manager_head"
= render "layouts/one_trust"
- content_for :sessions_broadcast do
= render "devise/sessions/broadcast"
= render_if_exists "layouts/google_tag_manager_body"
.js-non-oauth-login
- if any_form_based_providers_enabled?
= render 'devise/shared/tabs_ldap', admin_mode: false
- elsif password_authentication_enabled_for_web?
= render 'devise/sessions/new_base', admin_mode: false
-# Show a message if none of the mechanisms above are enabled
- if !password_authentication_enabled_for_web? && !ldap_sign_in_enabled? && !(omniauth_enabled? && devise_mapping.omniauthable?)
%div
= _('No authentication methods configured.')
- if Gitlab::CurrentSettings.current_application_settings.terms
.gl-mt-3
= html_escape(s_("SignUp|By signing in you accept the %{link_start}Terms of Use and acknowledge the Privacy Statement and Cookie Policy%{link_end}.")) % { link_start: "<a href='#{terms_path}' target='_blank' rel='noreferrer noopener'>".html_safe,
link_end: '</a>'.html_safe }
- if allow_signup?
.gl-mt-3.gl-text-center
= _("Don't have an account yet?")
= link_to _("Register now"),
new_registration_path(:user, invite_email: @invite_email),
data: { testid: 'register-link',
track_action: 'click_register_from_sign_in_page',
track_label: onboarding_status_tracking_label }
- if omniauth_enabled? && devise_mapping.omniauthable? && button_based_providers_enabled?
= render 'devise/shared/omniauth_box'
|