Skip to content
Snippets Groups Projects
Commit 3630d69e authored by Thilo Wischmeyer's avatar Thilo Wischmeyer Committed by Thilo Wischmeyer
Browse files

Fixed password validation error messages in password change dialog

parent e8313f26
No related branches found
No related tags found
1 merge request!275Fix password validation error messages in registration and password change dialogs.
...@@ -124,16 +124,16 @@ export default { ...@@ -124,16 +124,16 @@ export default {
}) })
this.$emit('hide') this.$emit('hide')
}).catch(error => { }).catch(error => {
if (error.response && error.response.status === 401) { if (error.response && error.response.status === 401) {
this.oldPasswordRejected = true this.oldPasswordRejected = true
this.$refs.form.validate() this.$refs.form.validate()
return return
} }
if (error.response && error.response.status === 406) { if (error.response && error.response.data && error.response.data.newPassword) {
this.newPasswordErrors = error.response.data.new_password this.newPasswordErrors = error.response.data.newPassword
return return
} }
this.errorAlert = error.toString() this.errorAlert = error.toString()
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment