Redirect logged in users away from landing page to app
This commit is contained in:
parent
c3d3ac84a4
commit
2d3171cfc9
@ -15,6 +15,11 @@ class Home extends Controller {
|
|||||||
* Serve the main welcome page.
|
* Serve the main welcome page.
|
||||||
*/
|
*/
|
||||||
welcome(req, res) {
|
welcome(req, res) {
|
||||||
|
if (req.user) {
|
||||||
|
// If we have a user, redirect them to the main app
|
||||||
|
return res.redirect('/i')
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Return the welcome view.
|
* Return the welcome view.
|
||||||
* The page() method is added by Flitter and passes some
|
* The page() method is added by Flitter and passes some
|
||||||
|
Loading…
Reference in New Issue
Block a user