How to make FatFree reroute to whatever page I want it to, if user clicks on CANCEL
button, when basic auth dialog appears?
I tried with -
if (! $auth->basic()){
$this->f3->reroute('/');
}
but this doesn't work. Page is shown with message:
Unauthorized
HTTP 401 (GET /protected-url)
reroute in the $f3 bootstrap index.php can be used like this: