gitlab-org--gitlab-foss/app/controllers/profiles/accounts_controller.rb

12 lines
300 B
Ruby
Raw Normal View History

2015-04-30 13:06:18 -04:00
class Profiles::AccountsController < Profiles::ApplicationController
def show
@user = current_user
end
def unlink
provider = params[:provider]
current_user.identities.find_by(provider: provider).destroy unless provider.to_s == 'saml'
redirect_to profile_account_path
end
end