summaryrefslogtreecommitdiff
path: root/src/views/ChangePassword/ChangePassword.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/ChangePassword/ChangePassword.vue')
-rw-r--r--src/views/ChangePassword/ChangePassword.vue16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/views/ChangePassword/ChangePassword.vue b/src/views/ChangePassword/ChangePassword.vue
index fbf95d9d..039dd0b6 100644
--- a/src/views/ChangePassword/ChangePassword.vue
+++ b/src/views/ChangePassword/ChangePassword.vue
@@ -84,10 +84,10 @@ export default {
return {
form: {
password: null,
- passwordConfirm: null
+ passwordConfirm: null,
},
username: this.$store.getters['global/username'],
- changePasswordError: false
+ changePasswordError: false,
};
},
validations() {
@@ -96,9 +96,9 @@ export default {
password: { required },
passwordConfirm: {
required,
- sameAsPassword: sameAs('password')
- }
- }
+ sameAsPassword: sameAs('password'),
+ },
+ },
};
},
methods: {
@@ -111,15 +111,15 @@ export default {
if (this.$v.$invalid) return;
let data = {
originalUsername: this.username,
- password: this.form.password
+ password: this.form.password,
};
this.$store
.dispatch('localUsers/updateUser', data)
.then(() => this.$router.push('/'))
.catch(() => (this.changePasswordError = true));
- }
- }
+ },
+ },
};
</script>