1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-12 13:33:06 +01:00

intermediate: hide passwords in config, admin password

This commit is contained in:
wellenvogel
2021-12-13 16:44:02 +01:00
parent c38964e8b0
commit df4b49ad5b
5 changed files with 33 additions and 14 deletions

View File

@@ -148,6 +148,9 @@ function checkApPass(v) {
return "password must be at least 8 characters";
}
}
function checkAdminPass(v){
return checkApPass(v);
}
function checkXDR(v,allValues){
if (! v) return;
@@ -187,6 +190,10 @@ function changeConfig() {
let name = v.getAttribute('name');
if (!name) continue;
if (name.indexOf("_") >= 0) continue;
let def=getConfigDefition(name);
if (def.type === 'password' && v.value == '') {
continue;
}
let check = v.getAttribute('data-check');
if (check) {
if (typeof (self[check]) === 'function') {