login fix
This commit is contained in:
parent
687a0a7d41
commit
2469c54581
@ -36,3 +36,7 @@ h1{
|
|||||||
font-size: 100%;
|
font-size: 100%;
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
color: initial;
|
||||||
|
}
|
||||||
|
@ -13,7 +13,7 @@ router.get('/login', function(req, res, next) {
|
|||||||
if(req.session.passwd=='insecure'){
|
if(req.session.passwd=='insecure'){
|
||||||
res.redirect('/admin');
|
res.redirect('/admin');
|
||||||
}else{
|
}else{
|
||||||
res.render('login', { mainHeader: 'Please Login' });
|
res.render('login', { mainHeader: 'Please Login', domain: 'raspberrypi.home', port: '3030'});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
function sendPass() {
|
function sendPass() {
|
||||||
email = $("#email").val();
|
email = $("#email").val();
|
||||||
pass = $("#password").val();
|
pass = $("#password").val();
|
||||||
$.post("http://localhost:3000/login", {
|
$.post("http://{{domain}}:{{port}}/login", {
|
||||||
passwd: pass
|
passwd: pass
|
||||||
}, function(data) {
|
}, function(data) {
|
||||||
console.log(data);
|
console.log(data);
|
||||||
|
Loading…
Reference in New Issue
Block a user