auto pre-fill superuser creds if default

This commit is contained in:
2022-03-11 21:08:57 +00:00
parent 9417f6fe68
commit 11f551f87d
2 changed files with 10 additions and 4 deletions

View File

@@ -391,11 +391,17 @@ export default {
try {
let res = await window.$gz.api.get("notify/hello");
if (res.data != null) {
if (res.data.sudf == true) {
//superuser is default creds
vm.input.username = "superuser";
vm.input.password = "l3tm3in";
vm.reveal = true; //might as well show it since it's the default anyway
}
vm.showEvalUsers = res.data.eval;
vm.hasSmallLogo = res.data.sl;
vm.hasMediumLogo = res.data.ml;
vm.hasLargeLogo = res.data.ll;
vm.lcr = res.data.lcr; //license consent required flage
vm.lcr = res.data.lcr; //license consent required flag
}
} catch (error) {
//squash it, this isn't critical