laravel - Destroy session of user when disabled by admin? -


imagine admin, decide disable or remove user. if user logged in , working system, must return login page in (while send first next request after kick admin). should do?

in auth filter, if user not guest - check if disabled; if so, log him out.

this not log him out if requests public (non-auth protected) route.. point anyway, since doesnt matter if user logged in or not.

http://laravel.com/docs/4.2/routing#route-filters


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -