fix password reset bug (#559)
This commit is contained in:
parent
a225b69f4c
commit
d4990ec4db
|
|
@ -150,8 +150,15 @@ export default {
|
||||||
}),
|
}),
|
||||||
methods: {
|
methods: {
|
||||||
async send() {
|
async send() {
|
||||||
await this.form.post("/password/email")
|
await this.form.post("/password/email").then(() => {
|
||||||
this.isMailSent = true
|
this.isMailSent = true
|
||||||
|
}).catch(error => {
|
||||||
|
if(error?.data?.email){
|
||||||
|
useAlert().error(error.data?.email)
|
||||||
|
this.isMailSent = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
)
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
this.$emit("close")
|
this.$emit("close")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue