I have a problem is a rails app using the recaptcha gem which uses devise for authentication.
What I did
I am trying to put Google recaptcha on the "password forgotten" screen users/password/new (see screenshot). The view plainly uses the <%= recaptcha_tags %> in the view as per instructions to render the captcha.
I set up the keys on my development, staging and production machines in the .env file as per instructions:
# Captcha
RECAPTCHA_SITE_KEY=""
RECAPTCHA_SECRET_KEY=""
On development environment it works (with an error not relevant for this question, see red text on screenshot):
The Error I am getting
On staging and production environment I get the following error:
ERROR for site owner: Invalid key type (=> see screenshot)

