diff --git a/client/src/components/profile/PasswordChange.vue b/client/src/components/profile/PasswordChange.vue index 3d48a364..1ea94ee5 100644 --- a/client/src/components/profile/PasswordChange.vue +++ b/client/src/components/profile/PasswordChange.vue @@ -1,4 +1,5 @@ @@ -29,7 +30,7 @@ } }, methods: { - resetPassword (passwords) { + resetPassword(passwords) { this.$apollo.mutate({ mutation: UPDATE_PASSWORD_MUTATION, variables: { @@ -37,7 +38,7 @@ passwordInput: passwords } } - }).then(({ data }) => { + }).then(({data}) => { if (data.updatePassword.success) { this.oldPasswordErrors = []; this.newPasswordErrors = []; @@ -56,14 +57,14 @@ console.log('fail', error) }); }, - handleOldPasswordError (error) { + handleOldPasswordError(error) { this.oldPasswordErrors = error.errors.map((fieldError) => { if (fieldError.code === 'invalid') { return 'Die Eingabe ist falsch' } }); }, - handleNewPasswordError (error) { + handleNewPasswordError(error) { this.newPasswordErrors = error.errors.map((fieldError) => { if (fieldError.code === 'invalid') { return 'Das Passwort muss Grossbuchstaben, Zahlen und Sonderzeichen beinhalten' diff --git a/client/src/components/profile/Profile.vue b/client/src/components/profile/Profile.vue index eb1303fc..3a372444 100644 --- a/client/src/components/profile/Profile.vue +++ b/client/src/components/profile/Profile.vue @@ -11,22 +11,18 @@ -