Redirect after logout (much classier)
This commit is contained in:
		
							parent
							
								
									14c7a3600e
								
							
						
					
					
						commit
						f18afb4471
					
				| @ -1,9 +1,7 @@ | ||||
| module.exports.index = function(req, res) { | ||||
| 
 | ||||
|     req.session = null; | ||||
|     res.locals.session = null; | ||||
|     res.setHeader('Content-Type', 'text/html'); | ||||
|     res.redirect('/'); | ||||
| 
 | ||||
|     res.render('../../index/views/index.jade', res.locals, function(err, out) { | ||||
|         res.send(out); | ||||
|     }); | ||||
| }; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user