fix password reset bug (#559)
This commit is contained in:
@@ -150,8 +150,15 @@ export default {
|
||||
}),
|
||||
methods: {
|
||||
async send() {
|
||||
await this.form.post("/password/email")
|
||||
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")
|
||||
|
||||
Reference in New Issue
Block a user