diff --git a/app/controllers/Home.controller.js b/app/controllers/Home.controller.js index c764ad5..6c3ab35 100644 --- a/app/controllers/Home.controller.js +++ b/app/controllers/Home.controller.js @@ -15,6 +15,11 @@ class Home extends Controller { * Serve the main welcome page. */ 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. * The page() method is added by Flitter and passes some