BigW Consortium Gitlab

accounts_controller.rb 300 Bytes
Newer Older
1
class Profiles::AccountsController < Profiles::ApplicationController
2 3 4
  def show
    @user = current_user
  end
5 6 7

  def unlink
    provider = params[:provider]
8
    current_user.identities.find_by(provider: provider).destroy unless provider.to_s == 'saml'
9 10
    redirect_to profile_account_path
  end
11
end