From 2c98ba97111eca40a9e3dba68cd59c2dbeba8c3c Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Thu, 6 Nov 2014 17:29:46 +0100 Subject: [PATCH] Also destroy the ichain session for deisabled users --- app/controllers/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index b9961dc5..f99bff34 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -59,7 +59,7 @@ class ApplicationController < ActionController::Base sign_out(current_user) mail = User.admin.first ? User.admin.first.email : 'the admin!' flash[:error] = "This User is disabled. Please contact #{mail}!" - redirect_to root_path + redirect_to User.ichain_logout_url end def not_found