This commit is contained in:
2020-06-11 14:08:40 +00:00
parent 3d4bf86518
commit f86207a33d
2 changed files with 64 additions and 40 deletions

View File

@@ -107,7 +107,7 @@ export default {
readOnly: false
});
window.$gz.eventBus.$on("menu-click", clickHandler);
//-------------
//Set known password warning if applicable
//note: all code assumes only one known user the superuser
//if this changes then auth.js as well as store and here will need to be changed as well
@@ -116,10 +116,11 @@ export default {
(window.$gz.store.state.globalSettings.licenseStatus == 3 || //ActivePurchased = 3,
window.$gz.store.state.globalSettings.licenseStatus == 4) // ExpiredPurchased = 4
) {
this.formState.errorBoxMessage = vm.$ay.t("KnownPasswordWarning");
this.obj.loginName = "superuser";
this.obj.oldPassword = "l3tm3in";
// this.formState.errorBoxMessage = vm.$ay.t("KnownPasswordWarning");
// this.obj.loginName = "superuser";
// this.obj.oldPassword = "l3tm3in";
}
//------------------
})
.catch(err => {
vm.formState.ready = true;
@@ -198,7 +199,6 @@ export default {
return window.$gz.form;
},
fieldValueChanged(ref) {
debugger;
if (!this.formState.loading && !this.formState.readOnly) {
window.$gz.form.fieldValueChanged(this, ref);
}