Commit 09791774 authored by Douwe Maan's avatar Douwe Maan

Use custom LDAP label in LDAP signin form.

parent 606d24ff
...@@ -61,6 +61,7 @@ v 7.9.0 (unreleased) ...@@ -61,6 +61,7 @@ v 7.9.0 (unreleased)
- Allow smb:// links in Markdown text. - Allow smb:// links in Markdown text.
- Filter merge request by title or description at Merge Requests page - Filter merge request by title or description at Merge Requests page
- Block user if he/she was blocked in Active Directory - Block user if he/she was blocked in Active Directory
- Use custom LDAP label in LDAP signin form.
v 7.8.4 v 7.8.4
- Fix issue_tracker_id substitution in custom issue trackers - Fix issue_tracker_id substitution in custom issue trackers
......
= form_tag(user_omniauth_callback_path(provider), id: 'new_ldap_user' ) do = form_tag(user_omniauth_callback_path(server['provider_name']), id: 'new_ldap_user' ) do
= text_field_tag :username, nil, {class: "form-control top", placeholder: "LDAP Login", autofocus: "autofocus"} = 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"} = password_field_tag :password, nil, {class: "form-control bottom", placeholder: "Password"}
= button_tag "LDAP Sign in", class: "btn-save btn" = button_tag "#{server['label']} Sign in", class: "btn-save btn"
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
.tab-content .tab-content
- @ldap_servers.each_with_index do |server, i| - @ldap_servers.each_with_index do |server, i|
%div.tab-pane{id: "tab-#{server['provider_name']}", class: (:active if i.zero?)} %div.tab-pane{id: "tab-#{server['provider_name']}", class: (:active if i.zero?)}
= render 'devise/sessions/new_ldap', provider: server['provider_name'] = render 'devise/sessions/new_ldap', server: server
- if signin_enabled? - if signin_enabled?
%div#tab-signin.tab-pane %div#tab-signin.tab-pane
= render 'devise/sessions/new_base' = render 'devise/sessions/new_base'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment