summaryrefslogtreecommitdiff
path: root/app/controllers/profiles/accounts_controller.rb
blob: 175afbf84259fa09434ce6da423a14d90d7a9b3f (plain)
1
2
3
4
5
6
7
8
9
10
11
class Profiles::AccountsController < Profiles::ApplicationController
  def show
    @user = current_user
  end

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