Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
Reset recaptcha state when actions failed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aries0d0f committed Apr 28, 2018
1 parent ab9635e commit 4f0bdb8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/views/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
await this.userLogin(this.user)
} catch (err) {
this.msg = `帳號或密碼錯誤,請再試一次。`
this.$refs.recaptcha.reset()
}
}
},
Expand Down
1 change: 1 addition & 0 deletions src/views/User.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
await this.updateUser({user: this.user, uid: this.userInfo.uid})
} catch (err) {
this.msg = `舊密碼錯誤,請再試一次。`
this.$refs.recaptcha.reset()
}
}
}
Expand Down

0 comments on commit 4f0bdb8

Please sign in to comment.