|
@ -31,6 +31,8 @@ |
|
|
{{ $t('The username or password entered is incorrect') }} |
|
|
{{ $t('The username or password entered is incorrect') }} |
|
|
</div> |
|
|
</div> |
|
|
<v-form ref="loginFormRef" lazy-validation> |
|
|
<v-form ref="loginFormRef" lazy-validation> |
|
|
|
|
|
<!-- <div v-if="$auth.$storage.getUniversal('userAccount') && $auth.$storage.getUniversal('userPassword')"></div> |
|
|
|
|
|
<div v-else></div> --> |
|
|
<v-text-field |
|
|
<v-text-field |
|
|
v-model="userData.Account" background-color="neutrals darken-1" :label="this.$t('Email')" |
|
|
v-model="userData.Account" background-color="neutrals darken-1" :label="this.$t('Email')" |
|
|
:placeholder="this.$t('Email')" height="40px" filled rounded dense single-line persistent-placeholder |
|
|
:placeholder="this.$t('Email')" height="40px" filled rounded dense single-line persistent-placeholder |
|
@ -142,11 +144,22 @@ |
|
|
handler: function () { |
|
|
handler: function () { |
|
|
if (this.remember == true) { |
|
|
if (this.remember == true) { |
|
|
this.$auth.$storage.setUniversal("userPassword", this.userData.Password); |
|
|
this.$auth.$storage.setUniversal("userPassword", this.userData.Password); |
|
|
|
|
|
this.$auth.$storage.setUniversal("userAccount", this.userData.Account); |
|
|
}else{ |
|
|
}else{ |
|
|
this.$auth.$storage.removeUniversal("userPassword"); |
|
|
this.$auth.$storage.removeUniversal("userPassword"); |
|
|
|
|
|
this.$auth.$storage.removeUniversal("userAccount", this.userData.Account); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
mounted(){ |
|
|
|
|
|
var userAccount = this.$auth.$storage.getUniversal('userAccount'); |
|
|
|
|
|
var userPassword = this.$auth.$storage.getUniversal('userPassword'); |
|
|
|
|
|
|
|
|
|
|
|
this.userData.Account = userAccount ? userAccount : ''; |
|
|
|
|
|
this.userData.Password = userPassword ? userPassword : ''; |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
async userLogin() { |
|
|
async userLogin() { |
|
|