diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-04-05 03:10:59 +0300 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-04-05 03:10:59 +0300 |
commit | e99855bfe4b4741d33d5575fdf1f0bc2edd85844 (patch) | |
tree | 6728cf64a55ed558c164806e62e08913495c3526 | |
parent | 943d8d4b90fbdc4f68d548c0566343903f895138 (diff) |
Avoid saving again if the user attributes haven't changed
-rw-r--r-- | app/controllers/omniauth_callbacks_controller.rb | 2 |
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 |