All posting errors should reload the captcha if we need more.
This commit is contained in:
parent
712a159816
commit
bb32e6eaa5
@ -222,8 +222,6 @@ QR =
|
|||||||
else
|
else
|
||||||
el = err
|
el = err
|
||||||
el.removeAttribute 'style'
|
el.removeAttribute 'style'
|
||||||
if QR.captcha.isEnabled and /captcha|verification/i.test el.textContent
|
|
||||||
QR.captcha.setup true
|
|
||||||
notice = new Notice 'warning', el
|
notice = new Notice 'warning', el
|
||||||
QR.notifications.push notice
|
QR.notifications.push notice
|
||||||
unless Header.areNotificationsEnabled
|
unless Header.areNotificationsEnabled
|
||||||
@ -633,7 +631,9 @@ QR =
|
|||||||
|
|
||||||
if QR.captcha.isEnabled and !err
|
if QR.captcha.isEnabled and !err
|
||||||
captcha = QR.captcha.getOne()
|
captcha = QR.captcha.getOne()
|
||||||
err = 'No valid captcha.' unless captcha
|
unless captcha
|
||||||
|
err = 'No valid captcha.'
|
||||||
|
QR.captcha.setup true
|
||||||
|
|
||||||
QR.cleanNotifications()
|
QR.cleanNotifications()
|
||||||
if err
|
if err
|
||||||
@ -773,11 +773,11 @@ QR =
|
|||||||
QR.cooldown.addMute seconds
|
QR.cooldown.addMute seconds
|
||||||
else
|
else
|
||||||
QR.cooldown.addDelay post, seconds
|
QR.cooldown.addDelay post, seconds
|
||||||
QR.captcha.setup true
|
|
||||||
else # stop auto-posting
|
else # stop auto-posting
|
||||||
QR.cooldown.auto = false
|
QR.cooldown.auto = false
|
||||||
QR.status()
|
QR.status()
|
||||||
QR.error err
|
QR.error err
|
||||||
|
QR.captcha.setup true
|
||||||
return
|
return
|
||||||
|
|
||||||
h1 = $ 'h1', resDoc
|
h1 = $ 'h1', resDoc
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user