There was an error with the reCAPTCHA. Please solve the reCAPTCHA again

Describe your question in as much detail as possible:

recaptcha is activated for Logins but it is not shown under the login form.

  • What are you seeing, and how does it differ from what you expect to see?

While logging in I am getting the error message: There was an error with the reCAPTCHA. Please solve the reCAPTCHA again. It shoild look like this: https://global.discourse-cdn.com/gitlab/original/3X/2/0/209a8d620f205b6fc6c787d42ed09c953db64650.png

  • What version are you on (Hint: /help) ? and are you using self-managed or gitlab.com?

I am running gitlab-ce under Ubuntu 18.04.
ii gitlab-ce 13.12.2-ce.0 amd64 GitLab Community Edition (including NGINX, Postgres, Redis)

  • What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?

I have disabled the captcha. Login is successful.
I have renabled it. reCAPTCHA is not working.
I followed reCAPTCHA | GitLab and set only X-GitLab-Show-Login-Captcha.
I didnĀ“t change spam_verdict_service.rb.