diff --git a/app/Http/Controllers/CustomAuthController.php b/app/Http/Controllers/CustomAuthController.php index 7310717..3408531 100755 --- a/app/Http/Controllers/CustomAuthController.php +++ b/app/Http/Controllers/CustomAuthController.php @@ -78,23 +78,23 @@ class CustomAuthController extends Controller $post['captcha'] = $this->captchaCheck(); $validator = Validator::make( - // $post, - // [ - // 'username' => 'unique:user_logins', - // 'email' => 'unique:user_logins', - // 'g-recaptcha-response' => 'required', - // 'captcha' => 'required|min:1' - // ], - // [ - // 'g-recaptcha-response.required' => 'Captcha is required', - // 'captcha.min' => 'Wrong captcha, please try again.' - // ] - $post, [ 'username' => 'unique:user_logins', 'email' => 'unique:user_logins', + 'g-recaptcha-response' => 'required', + 'captcha' => 'required|min:1' + ], + [ + 'g-recaptcha-response.required' => 'Captcha is required', + 'captcha.min' => 'Wrong captcha, please try again.' ] + + // $post, + // [ + // 'username' => 'unique:user_logins', + // 'email' => 'unique:user_logins', + // ] );