auto pre-fill superuser creds if default
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user