Non-persisted users already have the identity by way of build_new_user.

This commit is contained in:
Douwe Maan 2015-04-14 17:08:49 +02:00
parent bf7932bd06
commit c43411e97a
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ module Gitlab
end
def update_user_attributes
return unless persisted?
gl_user.skip_reconfirmation!
gl_user.email = auth_hash.email