gitlab-org--gitlab-foss/app/controllers/profiles/accounts_controller.rb
2015-04-30 19:12:15 +02:00

11 lines
269 B
Ruby

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