summaryrefslogtreecommitdiff
path: root/app/controllers/profiles/accounts_controller.rb
blob: 9bd34fe22613ea5401ab2408887a3e277414ef47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class Profiles::AccountsController < ApplicationController
  layout "profile"

  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