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

authorized_applications_controller.rb « oauth « controllers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 0b27ce7da7291db743126bae189f107e948652d5 (plain)
1
2
3
4
5
6
7
8
class Oauth::AuthorizedApplicationsController < Doorkeeper::AuthorizedApplicationsController
  layout "profile"

  def destroy
    Doorkeeper::AccessToken.revoke_all_for(params[:id], current_resource_owner)
    redirect_to applications_profile_url, notice: I18n.t(:notice, scope: [:doorkeeper, :flash, :authorized_applications, :destroy])
  end
end