Don't require captcha if cookie present indicating captcha not needed yet. #1767

This commit is contained in:
ccd0 2018-01-23 09:54:44 -08:00
parent dc98107cda
commit e21655f463

View File

@ -664,7 +664,7 @@ QR =
if g.BOARD.ID is 'r9k' and !post.com?.match(/[a-z-]/i)
err or= 'Original comment required.'
if QR.captcha.isEnabled and !err
if QR.captcha.isEnabled and !/\b_ct=/.test(d.cookie) and !err
captcha = QR.captcha.getOne(!!threadID)
unless captcha
err = 'No valid captcha.'