There seems to be a problem with refresh captcha on page reload or after successful submit.
While googling, I’ve come across a topic suggesting the following:
when I did the first part of suggestion, nothing changed. But when passing true to getVerifyCode(true), captcha always returns an error as if the entered code is wrong.
when I click on the refresh link ("Get a new code") the page redirect to the json output of the ajax request. Then I click on the browser Back button and the page display again now with the new captcha image.
What I expect is only the image refresh, not the page.