fixed post url

This commit is contained in:
Lukas Bachschwell 2017-03-22 21:05:16 +01:00
parent 2469c54581
commit 92a8a99359
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ router.get('/login', function(req, res, next) {
if(req.session.passwd=='insecure'){
res.redirect('/admin');
}else{
res.render('login', { mainHeader: 'Please Login', domain: 'raspberrypi.home', port: '3030'});
res.render('login', { mainHeader: 'Please Login' });
}
});

View File

@ -19,7 +19,7 @@
function sendPass() {
email = $("#email").val();
pass = $("#password").val();
$.post("http://{{domain}}:{{port}}/login", {
$.post("/login", {
passwd: pass
}, function(data) {
console.log(data);