Skip to content
Snippets Groups Projects
Commit 1a31cb2c authored by Izaak Alpert's avatar Izaak Alpert
Browse files

Update the proc/lamda to be consistent

Change-Id: I411c7544c7834b00d26e51dc9a6c0396c51bd4f3
parent 089605fe
No related branches found
No related tags found
1 merge request!4289Allow the ldap logins with email or username
Loading
Loading
@@ -207,11 +207,11 @@ Devise.setup do |config|
 
if Gitlab.config.ldap.enabled
if Gitlab.config.ldap.allow_username_or_email_login
email_stripping_proc = Proc.new {|name| name.gsub(/@.*$/,'')}
email_stripping_proc = ->(name) {name.gsub(/@.*$/,'')}
else
email_stripping_proc = lambda {|n|n}
email_stripping_proc = ->(name) {name}
end
config.omniauth :ldap,
host: Gitlab.config.ldap['host'],
base: Gitlab.config.ldap['base'],
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment