anhskohbo / no-captcha

No CAPTCHA reCAPTCHA For Laravel.
https://packagist.org/packages/anhskohbo/no-captcha
MIT License
1.77k stars 234 forks source link

Error curl_setopt_array(): Unable to create temporary file. #100

Closed Pavel12398 closed 6 years ago

Pavel12398 commented 6 years ago

When I enter recaptcha and all the fields leave blank when sending the form, I get an error curl_setopt_array(): Unable to create temporary file.

it RegisterController

public function setRegister(Request $request){ $this->validator($request->all())->validate(); } protected function validator(array $data) { return Validator::make($data, [
'name' => 'nullable|string|between:3,16', 'family'=>'nullable|string|between:3,16', 'accountname'=>'required|alpha_num|between:6,20|unique:users', 'email' => 'required|email|max:60|unique:users', 'password' => 'required|string|between:6,20|confirmed',
'g-recaptcha-response' => 'required|captcha', ]); } it message 'custom' => [ 'g-recaptcha-response' => [ 'required' => 'Подтвердите, что вы не робот', 'captcha' => 'Ошибка recaptcha! обратитесь к администрации сайта.', ], ], form

{!! NoCaptcha::display(['data-theme' => 'dark']) !!} @if ($errors->has('g-recaptcha-response'))
{{ $errors->first('g-recaptcha-response') }}
@endif

version laravel 5.5 "php": ">=7.0.0", "anhskohbo/no-captcha": "^3.0",

anhskohbo commented 6 years ago

This related to guzzle issue, see: https://github.com/guzzle/guzzle/issues/1363