Class: StandardId::Web::LogoutController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/standard_id/web/logout_controller.rb

Instance Method Summary collapse

Methods included from ControllerPolicy

all_controllers, authenticated_controllers, public_controllers, register, registry_snapshot, reset_registry!

Instance Method Details

#createObject



15
16
17
18
# File 'app/controllers/standard_id/web/logout_controller.rb', line 15

def create
  revoke_current_session!
  redirect_to params[:redirect_uri] || root_path, notice: "Successfully signed out"
end