gitlab-org--gitlab-foss/app/views/devise/sessions/_new_ldap.html.haml
Dmitry Smirnov 0d74154abc fix LDAP omniauth regression (Closes: #22357)
~~~~
ActionView::Template::Error (undefined method `user_omniauth_callback_path'
~~~~

Signed-off-by: Dmitry Smirnov <onlyjob@member.fsf.org>
2016-09-21 14:10:21 +10:00

9 lines
551 B
Text

= form_tag(omniauth_callback_path(:user, server['provider_name']), id: 'new_ldap_user') do
= text_field_tag :username, nil, {class: "form-control top", placeholder: "#{server['label']} Login", autofocus: "autofocus"}
= password_field_tag :password, nil, {class: "form-control bottom", placeholder: "Password"}
- if devise_mapping.rememberable?
.remember-me.checkbox
%label{for: "remember_me"}
= check_box_tag :remember_me, '1', false, id: 'remember_me'
%span Remember me
= button_tag "Sign in", class: "btn-save btn"