Browse Source

fix: messages

pull/24/head
Tyler Chen 4 years ago
parent
commit
8426682108
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      src/_pages/auth/Login.vue

+ 6
- 6
src/_pages/auth/Login.vue View File

@@ -206,9 +206,9 @@ export default {
emailErrors() {
const errors = [];
if (!this.$v.email.$dirty) return errors;
!this.$v.email.email && errors.push(this.messages['err.email.invalid']);
!this.$v.email.email && errors.push(this.messages['err_email_invalid']);
!this.$v.email.required &&
errors.push(this.messages['err.email.required']);
errors.push(this.messages['err_email_required']);
return errors;
},

@@ -216,9 +216,9 @@ export default {
const errors = [];
if (!this.$v.password.$dirty) return errors;
!this.$v.password.minLength &&
errors.push(this.messages['err.password.tooShort']);
errors.push(this.messages['err_password_tooShort']);
!this.$v.password.required &&
errors.push(this.messages['err.password.required']);
errors.push(this.messages['err_password_required']);
return errors;
},

@@ -226,7 +226,7 @@ export default {
const errors = [];
if (!this.$v.totpToken.$dirty) return errors;
!this.$v.totpToken.required &&
errors.push(this.messages['err.totpToken.invalid']);
errors.push(this.messages['err_totpToken_invalid']);
return errors;
},

@@ -234,7 +234,7 @@ export default {
const errors = [];
if (!this.$v.unlockKey.$dirty) return errors;
!this.$v.unlockKey.required &&
errors.push(this.messages['err.unlock.required']);
errors.push(this.messages['err_unlock_required']);
return errors;
},
},


Loading…
Cancel
Save