-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
validation not working #26
Comments
Hi, public function boot()
{
$app = $this->app;
$this->bootConfig();
Validator::extendImplicit('captcha', function ($attribute, $value, $parameters) use ($app){
return $app['captcha']->verifyResponse($value, $app['request']->getClientIp());
});
if ($app->bound('form')) {
$app['form']->macro('captcha', function ($attributes = []) use ($app) {
return $app['captcha']->display($attributes, $app->getLocale());
});
}
} Don't forget to import the 'Validator' facade.
|
sorry im closing this, the code above is for my signup page, so the captcha actualy works, i forgot to implements the captcha for my login page.. My Bad |
my no-captcha validation is not working, i can signin without clicking on captcha
this is my validation code
username, email, password are working, what am i doing wrong ?
The text was updated successfully, but these errors were encountered: