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

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

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

html - jQuery UI Sortable - Remove placeholder after item is dropped -