From c43411e97aae85386ab50f9caf5ad8be481fb91c Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Tue, 14 Apr 2015 17:08:49 +0200 Subject: Non-persisted users already have the identity by way of build_new_user. --- lib/gitlab/ldap/user.rb | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.1