diff --git a/lib/gitlab/ldap/user.rb b/lib/gitlab/ldap/user.rb index d054014039a2400aad76f642f33c070c1d738807..d652e19217dd6835a11c49384945ae363d0b84ff 100644 --- a/lib/gitlab/ldap/user.rb +++ b/lib/gitlab/ldap/user.rb @@ -39,6 +39,8 @@ module Gitlab end def update_user_attributes + return unless persisted? + gl_user.skip_reconfirmation! gl_user.email = auth_hash.email