Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/single_auth/application_controller_patch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def find_current_user_with_ldap_single_auth


def try_login_by_remote_env(remote_username)
remote_username = remote_username.to_s.split('@')[0]
remote_username = remote_username.to_s.split('\\')[1].split("@")[0]
user = User.active.find_by_login remote_username
if user.nil?
user = add_user_by_ldap_info(remote_username)
Expand Down Expand Up @@ -109,4 +109,4 @@ def update_autologout_time

end
end
end
end