Fix Google Bug
This commit is contained in:
parent
b539e36ab9
commit
274d9e19b0
2 changed files with 6 additions and 2 deletions
|
@ -15,5 +15,9 @@ DB_DATABASE=homestead
|
|||
DB_USERNAME=homestead
|
||||
DB_PASSWORD=secret
|
||||
|
||||
S3_ACCESS_KEY=abc
|
||||
S3_SECRET=abc
|
||||
S3_Bucket=abc
|
||||
|
||||
CACHE_DRIVER=file
|
||||
QUEUE_CONNECTION=sync
|
||||
|
|
|
@ -32,9 +32,9 @@ class UserController extends BaseController
|
|||
//If Recptache is enabled check it at the beginning
|
||||
if(Setting::getSettingValue("recaptcha_v2_login")) {
|
||||
$reCaptcha = new ReCaptcha(Setting::getSettingValue("recaptcha_v2_secret"));
|
||||
$response = $reCaptcha->verify($request->input("g-recaptcha-response"));
|
||||
$reresponse = $reCaptcha->verify($request->input("g-recaptcha-response"));
|
||||
|
||||
if(!$response->isSuccess()) {
|
||||
if(!$reresponse->isSuccess()) {
|
||||
throw new HTTPException(400, "Captcha validation failed");
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue