diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-14 18:08:49 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-14 18:08:49 +0300 |
commit | c43411e97aae85386ab50f9caf5ad8be481fb91c (patch) | |
tree | 6194ecac225e980b4b4920d33aaf68d4ca0238ae /lib/gitlab/ldap/user.rb | |
parent | bf7932bd06e45f82c7aa80373aa3aa1bf52d4d88 (diff) |
Non-persisted users already have the identity by way of build_new_user.
Diffstat (limited to 'lib/gitlab/ldap/user.rb')
-rw-r--r-- | lib/gitlab/ldap/user.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/ldap/user.rb b/lib/gitlab/ldap/user.rb index d054014039a..d652e19217d 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 |