enable captcha
This commit is contained in:
@@ -78,23 +78,23 @@ class CustomAuthController extends Controller
|
|||||||
$post['captcha'] = $this->captchaCheck();
|
$post['captcha'] = $this->captchaCheck();
|
||||||
|
|
||||||
$validator = Validator::make(
|
$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,
|
$post,
|
||||||
[
|
[
|
||||||
'username' => 'unique:user_logins',
|
'username' => 'unique:user_logins',
|
||||||
'email' => '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',
|
||||||
|
// ]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user