fix password reset bug (#559)
This commit is contained in:
parent
a225b69f4c
commit
d4990ec4db
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue