This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
<v-form ref="form">
|
||||
<v-row>
|
||||
<gz-error :errorBoxMessage="formState.errorBoxMessage"></gz-error>
|
||||
{{ formState }}
|
||||
<v-col cols="12">
|
||||
<v-text-field
|
||||
name="username"
|
||||
@@ -108,12 +109,16 @@ export default {
|
||||
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
|
||||
if (
|
||||
window.$gz.store.state.knownPassword &&
|
||||
(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";
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
@@ -193,6 +198,7 @@ export default {
|
||||
return window.$gz.form;
|
||||
},
|
||||
fieldValueChanged(ref) {
|
||||
debugger;
|
||||
if (!this.formState.loading && !this.formState.readOnly) {
|
||||
window.$gz.form.fieldValueChanged(this, ref);
|
||||
}
|
||||
@@ -309,7 +315,8 @@ function fetchTranslatedText(vm) {
|
||||
"UserLogin",
|
||||
"OldPassword",
|
||||
"NewPassword",
|
||||
"ConfirmPassword"
|
||||
"ConfirmPassword",
|
||||
"KnownPasswordWarning"
|
||||
]);
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user