fix password reset bug (#559)

This commit is contained in:
Favour Olayinka 2024-09-05 08:36:28 +01:00 committed by GitHub
parent a225b69f4c
commit d4990ec4db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 2 deletions

View File

@ -150,8 +150,15 @@ export default {
}),
methods: {
async send() {
await this.form.post("/password/email")
this.isMailSent = true
await this.form.post("/password/email").then(() => {
this.isMailSent = true
}).catch(error => {
if(error?.data?.email){
useAlert().error(error.data?.email)
this.isMailSent = false
}
}
)
},
close() {
this.$emit("close")