ee/lib/ee/gitlab/auth/ldap/access.rb
# Update user email if it changed in LDAP
Update user email if it changed in LDAP
Update user email if it changed in LDAP
def update_email
            return false unless ldap_user.try(:email)
            ldap_email = ldap_user.email.last.to_s.downcase
            return false if user.email == ldap_email
            ::Users::UpdateService.new(user, user: user, email: ldap_email).execute do |user|
              user.skip_reconfirmation!
            end
          end
def update_email return false unless ldap_user . try ( :email ) ldap_email = ldap_user . email . last . to_s . downcase return false if user . email == ldap_email :: Users :: UpdateService . new ( user , user : user , email : ldap_email ) . execute do | user | user . skip_reconfirmation! end end
Update user email if it changed in LDAP
Update user email if it changed in LDAP