summaryrefslogtreecommitdiff
path: root/app/controllers/oauth/authorized_applications_controller.rb
blob: 3ab6def511c8b3ca54c3d1c70b32c2ad09a89495 (plain)
1
2
3
4
5
6
7
8
9
10
class Oauth::AuthorizedApplicationsController < Doorkeeper::AuthorizedApplicationsController
  include PageLayoutHelper

  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