diff options
Diffstat (limited to 'src/views/Login')
-rw-r--r-- | src/views/Login/Login.vue | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/views/Login/Login.vue b/src/views/Login/Login.vue index dd0a415b..1936cd48 100644 --- a/src/views/Login/Login.vue +++ b/src/views/Login/Login.vue @@ -1,6 +1,6 @@ <template> <b-form - class="login-form mx-auto ml-md-5 mb-3" + class="login-form mx-auto ml-md-5 mb-3" novalidate @submit.prevent="login" > @@ -79,38 +79,38 @@ export default { return { userInfo: { username: null, - password: null + password: null, }, disableSubmitButton: false, languages: [ { value: 'en-US', - text: 'English' + text: 'English', }, { value: 'es', - text: 'Español' - } - ] + text: 'Español', + }, + ], }; }, computed: { authError() { return this.$store.getters['authentication/authError']; - } + }, }, validations: { userInfo: { username: { - required + required, }, password: { - required - } - } + required, + }, + }, }, methods: { - login: function() { + login: function () { this.$v.$touch(); if (this.$v.$invalid) return; this.disableSubmitButton = true; @@ -128,17 +128,17 @@ export default { username ); }) - .then(passwordChangeRequired => { + .then((passwordChangeRequired) => { if (passwordChangeRequired) { this.$router.push('/change-password'); } else { this.$router.push('/'); } }) - .catch(error => console.log(error)) + .catch((error) => console.log(error)) .finally(() => (this.disableSubmitButton = false)); - } - } + }, + }, }; </script> |