diff options
author | Connor Shea <connor.james.shea@gmail.com> | 2016-07-18 15:14:30 -0600 |
---|---|---|
committer | Connor Shea <connor.james.shea@gmail.com> | 2016-08-03 11:50:29 -0600 |
commit | e8c6f119cd7cf519db3ad1622786aad3156324d4 (patch) | |
tree | 35838e75357929e06068fc9cb9effc80b4719c10 /app/views/profiles/accounts/show.html.haml | |
parent | bbb044e116fcc67368338e287065f60adb8d1f84 (diff) | |
download | gitlab-ce-e8c6f119cd7cf519db3ad1622786aad3156324d4.tar.gz |
Add an oauth provider path helper.
The helper constructs the path for a given oauth provider since Devise 4.0 deprecated passing the provider to the omniauth authentication path.
Fixes #18110.
Diffstat (limited to 'app/views/profiles/accounts/show.html.haml')
-rw-r--r-- | app/views/profiles/accounts/show.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/profiles/accounts/show.html.haml b/app/views/profiles/accounts/show.html.haml index 57d16d29158..7fadd7bf9f1 100644 --- a/app/views/profiles/accounts/show.html.haml +++ b/app/views/profiles/accounts/show.html.haml @@ -70,7 +70,7 @@ = link_to unlink_profile_account_path(provider: provider), method: :delete, class: 'provider-btn' do Disconnect - else - = link_to user_omniauth_authorize_path(provider), method: :post, class: 'provider-btn not-active', "data-no-turbolink" => "true" do + = link_to provider_path(provider), method: :post, class: 'provider-btn not-active', "data-no-turbolink" => "true" do Connect %hr - if current_user.can_change_username? |