Commit 1a31cb2c authored by Izaak Alpert's avatar Izaak Alpert

Update the proc/lamda to be consistent

Change-Id: I411c7544c7834b00d26e51dc9a6c0396c51bd4f3
parent 089605fe
......@@ -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'],
......
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