diff --git a/app/controllers/auth/registrations_controller.rb b/app/controllers/auth/registrations_controller.rb index 4fc0a708..5d62ff41 100644 --- a/app/controllers/auth/registrations_controller.rb +++ b/app/controllers/auth/registrations_controller.rb @@ -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"]