Welcome to mirror list, hosted at ThFree Co, Russian Federation.

accounts_controller.rb « profiles « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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