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