Updated RegistrationsController captcha values

• Updated:
- RegistrationsController captcha values
This commit is contained in:
Developer 2021-02-13 13:31:57 -05:00
parent 7a2594e105
commit 0341cd8572

View File

@ -117,7 +117,7 @@ class Auth::RegistrationsController < Devise::RegistrationsController
"serverKey" => ENV.fetch('GAB_CAPTCHA_SECRET_KEY', ''),
"value" => typedChallenge,
"username" => username,
"ip" => request.headers['CF-Real-IP']
"ip" => request.headers['True-Client-IP']
}).perform do |res|
body = JSON.parse(res.body_with_limit)
result = !!body["success"]