ajout redirection
This commit is contained in:
parent
51558b193f
commit
da94d4d140
2
index.js
2
index.js
|
@ -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){
|
||||||
|
|
Loading…
Reference in New Issue