Instead of showing an authorization error when the user is not logged in and tries to visit /, redirect them to the login page.

feature/node-rewrite
Sven Slootweg 11 years ago
parent 3739b5b35e
commit 83bd0610c1

@ -53,5 +53,5 @@ if($sLoggedIn === true)
} }
else else
{ {
throw new UnauthorizedException("You must be logged in to view this page."); redirect("/login");
} }

Loading…
Cancel
Save