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.
Comments
Post a Comment