ajout redirection

This commit is contained in:
adri 2019-01-08 10:09:02 +01:00
parent 51558b193f
commit da94d4d140
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ app.get('/', function(req, res){
}).get('/login', function(req, res){ }).get('/login', function(req, res){
res.render('login'); res.render('login');
}).post('/login', loginController, function(req, res){ }).post('/login', loginController, function(req, res){
res.send('<!DOCTYPE html><html><body>'+req.session.authMessage+'<br><a href="/">HOME</a></body></html>'); res.send('<!DOCTYPE html><html><head><meta http-equiv="refresh" content="3;url=http://127.0.0.1:3000" /></head><body>'+req.session.authMessage+'<br><a href="/">HOME</a></body></html>');
}); });
io.on('connection', function(socket){ io.on('connection', function(socket){