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', ''),
|
"serverKey" => ENV.fetch('GAB_CAPTCHA_SECRET_KEY', ''),
|
||||||
"value" => typedChallenge,
|
"value" => typedChallenge,
|
||||||
"username" => username,
|
"username" => username,
|
||||||
"ip" => request.headers['CF-Real-IP']
|
"ip" => request.headers['True-Client-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
Block a user