refresh captcha if it is wrong
This commit is contained in:
parent
10bbaf4e5e
commit
d5daf958cf
2 changed files with 3 additions and 1 deletions
|
@ -16,6 +16,8 @@ async function formClick(ev) {
|
|||
|
||||
let json = await fetched.json();
|
||||
|
||||
target.querySelector('.captcha').src += '&a=b';
|
||||
|
||||
target.querySelector('.form-message').textContent = json.message;
|
||||
|
||||
if (json.redirect) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue