- changePassword () {
- const newPassword = this.form.value['new-password']
- const newConfirmedPassword = this.form.value['new-confirmed-password']
-
- this.error = null
+ validateNewPassword () {
+ if (this.form.value['new-password'] && this.form.value['new-confirmed-password']) {
+ if (this.form.value['new-password'] === this.form.value['new-confirmed-password']) {
+ this.error = null
+ this.unsendable = false
+ return
+ }
+ }
+ this.unsendable = true
+ }