login fix

This commit is contained in:
eorg_oz 2017-03-22 16:46:00 +01:00
parent 687a0a7d41
commit 2469c54581
3 changed files with 6 additions and 2 deletions

View File

@ -36,3 +36,7 @@ h1{
font-size: 100%;
color: black;
}
input {
color: initial;
}

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' });
res.render('login', { mainHeader: 'Please Login', domain: 'raspberrypi.home', port: '3030'});
}
});

View File

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