Fix bug in handling captcha errors when using captcha prerequest.

This commit is contained in:
ccd0 2019-09-14 10:22:20 -07:00
parent 5ecbcc0311
commit 7e145daeb1

View File

@ -36,7 +36,8 @@ Captcha.cache =
isReply = (QR.selected.thread isnt 'new')
if !$.event('RequestCaptcha', {isReply})
@prerequested = true
@submitCB = @save.bind(@)
@submitCB = (captcha) =>
@save captcha if captcha
@updateCount()
haveCookie: ->