summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPatricio Cano <suprnova32@gmail.com>2016-04-04 19:10:59 -0500
committerPatricio Cano <suprnova32@gmail.com>2016-04-04 19:10:59 -0500
commite99855bfe4b4741d33d5575fdf1f0bc2edd85844 (patch)
tree6728cf64a55ed558c164806e62e08913495c3526 /app
parent943d8d4b90fbdc4f68d548c0566343903f895138 (diff)
downloadgitlab-ce-e99855bfe4b4741d33d5575fdf1f0bc2edd85844.tar.gz
Avoid saving again if the user attributes haven't changed
Diffstat (limited to 'app')
-rw-r--r--app/controllers/omniauth_callbacks_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/omniauth_callbacks_controller.rb b/app/controllers/omniauth_callbacks_controller.rb
index 21135f7d607..d28e96c3f18 100644
--- a/app/controllers/omniauth_callbacks_controller.rb
+++ b/app/controllers/omniauth_callbacks_controller.rb
@@ -55,7 +55,7 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
end
else
saml_user = Gitlab::Saml::User.new(oauth)
- saml_user.save
+ saml_user.save if saml_user.changed?
@user = saml_user.gl_user
continue_login_process