Updated RegistrationsController captcha values
• Updated: - RegistrationsController captcha values
This commit is contained in:
parent
7a2594e105
commit
0341cd8572
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user