BigW Consortium Gitlab

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

  def unlink
    provider = params[:provider]
    current_user.identities.find_by(provider: provider).destroy
    redirect_to profile_account_path
  end
11
end