Closed IsaacXen closed 6 years ago
There is now req.unauthenticate(...)
and req.unauthenticateSession(...)
. unauthenticateSession
will call unauthenticate
internally to prevent the session from getting re-configured by the middleware.
See the updated tests for an example. :)
Protected routes can still be hit after calling
unauthenticateSession(_:)
.It do set cache to
nil
, but only for current request, not globally.Steps to reproduce
Configurate:
Model:
Controller:
Route:
/
route, and redirected to/login
./logout
route./
route.Expected behavior
Redirected to
/login
.Actual behavior
Hit protected
/
and not redirecting.Environment