UI improvements
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user