This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
<v-form ref="form">
|
<v-form ref="form">
|
||||||
<v-row>
|
<v-row>
|
||||||
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
||||||
|
{{ formState }}
|
||||||
<v-col cols="12">
|
<v-col cols="12">
|
||||||
<v-text-field
|
<v-text-field
|
||||||
name="username"
|
name="username"
|
||||||
@@ -108,12 +109,16 @@ export default {
|
|||||||
window.$gz.eventBus.$on("menu-click", clickHandler);
|
window.$gz.eventBus.$on("menu-click", clickHandler);
|
||||||
|
|
||||||
//Set known password warning if applicable
|
//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
|
||||||
if (
|
if (
|
||||||
window.$gz.store.state.knownPassword &&
|
window.$gz.store.state.knownPassword &&
|
||||||
(window.$gz.store.state.globalSettings.licenseStatus == 3 || //ActivePurchased = 3,
|
(window.$gz.store.state.globalSettings.licenseStatus == 3 || //ActivePurchased = 3,
|
||||||
window.$gz.store.state.globalSettings.licenseStatus == 4) // ExpiredPurchased = 4
|
window.$gz.store.state.globalSettings.licenseStatus == 4) // ExpiredPurchased = 4
|
||||||
) {
|
) {
|
||||||
this.formState.errorBoxMessage = vm.$ay.t("KnownPasswordWarning");
|
this.formState.errorBoxMessage = vm.$ay.t("KnownPasswordWarning");
|
||||||
|
this.obj.loginName = "superuser";
|
||||||
|
this.obj.oldPassword = "l3tm3in";
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
@@ -193,6 +198,7 @@ export default {
|
|||||||
return window.$gz.form;
|
return window.$gz.form;
|
||||||
},
|
},
|
||||||
fieldValueChanged(ref) {
|
fieldValueChanged(ref) {
|
||||||
|
debugger;
|
||||||
if (!this.formState.loading && !this.formState.readOnly) {
|
if (!this.formState.loading && !this.formState.readOnly) {
|
||||||
window.$gz.form.fieldValueChanged(this, ref);
|
window.$gz.form.fieldValueChanged(this, ref);
|
||||||
}
|
}
|
||||||
@@ -309,7 +315,8 @@ function fetchTranslatedText(vm) {
|
|||||||
"UserLogin",
|
"UserLogin",
|
||||||
"OldPassword",
|
"OldPassword",
|
||||||
"NewPassword",
|
"NewPassword",
|
||||||
"ConfirmPassword"
|
"ConfirmPassword",
|
||||||
|
"KnownPasswordWarning"
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user