Merge branch 'improve-oauth-ux' into 'master'

Improve OAuth UX

See merge request !1489
This commit is contained in:
Dmitriy Zaporozhets 2015-02-09 16:45:25 +00:00
commit 3e4e5f7063
1 changed files with 1 additions and 1 deletions

View File

@ -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