summaryrefslogtreecommitdiff
path: root/app/controllers/omniauth_callbacks_controller.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-08 00:53:31 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-08 00:53:31 -0800
commit03c8bf39e10b52bc5e9f128fe53876ad8b398dac (patch)
tree22d27bb9949a3bde5b25f8756bc9eb2e7a70f3e2 /app/controllers/omniauth_callbacks_controller.rb
parent64673acf9f75cb29d665553ba58ffb2046012eeb (diff)
downloadgitlab-ce-03c8bf39e10b52bc5e9f128fe53876ad8b398dac.tar.gz
When add new social account - redirect to accounts page and show notice message
Diffstat (limited to 'app/controllers/omniauth_callbacks_controller.rb')
-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 442a1cf7518..bb9d65c9ed6 100644
--- a/app/controllers/omniauth_callbacks_controller.rb
+++ b/app/controllers/omniauth_callbacks_controller.rb
@@ -44,7 +44,7 @@ class OmniauthCallbacksController < Devise::OmniauthCallbacksController
if current_user
# Add new authentication method
current_user.identities.find_or_create_by(extern_uid: oauth['uid'], provider: oauth['provider'])
- redirect_to profile_path
+ redirect_to profile_account_path, notice: 'Authentication method updated'
else
@user = Gitlab::OAuth::User.new(oauth)
@user.save