Updated IP in captcha

• Updated:
- IP in captcha
This commit is contained in:
mgabdev 2021-02-02 14:20:27 -05:00
parent 6b6cd76bb2
commit 496f624c3a

View File

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