UI improvements

This commit is contained in:
2019-06-21 17:54:10 -05:00
parent 487f0c4eeb
commit 15087ca30f
7 changed files with 77 additions and 14 deletions

View File

@@ -11,13 +11,19 @@ class Home {
*/
welcome(req, res){
let pass = {}
if ( req.session.auth && req.session.auth.user ){
pass['user'] = req.session.auth.user
}
/*
* Return the welcome view.
* It must be passed the response.
* View parameters can be passed as an optional third
* argument to the view() method.
*/
return _flitter.view(res, 'welcome')
return _flitter.view(res, 'welcome', pass)
}
}