Add automatic and manual reloading of captchas

This commit is contained in:
discomrade 2021-05-05 15:17:34 -02:00
parent 11bab0a9ad
commit f0b3c0fcb6
4 changed files with 15 additions and 3 deletions

View file

@ -56,6 +56,7 @@ $(window).ready(function() {
return xhr;
},
success: function(post_response) {
reloadCaptcha(); // For securimage captcha. TODO doesn't always need reloading
if (post_response.error) {
if (post_response.banned) {
// You are banned. Must post the form normally so the user can see the ban message.