Skip to content
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 does not work with laravel 4.2 #7

Closed
joaquingares opened this issue Dec 14, 2014 · 2 comments
Closed

Validation does not work with laravel 4.2 #7

joaquingares opened this issue Dec 14, 2014 · 2 comments

Comments

@joaquingares
Copy link

In laravel 4.2 the double rule required|captcha only funcion with required. captcha always return false although the green tic and everything seem to be perfect. googje for that rule always return false. I spend a lot of time without any answer.

@anhskohbo
Copy link
Owner

In my test, everything look good.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Captcha</title>
</head>
<body>

    {{ Form::open() }}
        {{ Form::captcha() }}
        {{ Form::submit() }}
    {{ Form::close() }}

</body>
</html>
Route::post('captcha', function()
{
    $validate = Validator::make(Input::all(), array(
        'g-recaptcha-response' => 'required|captcha'
    ));

    var_dump($validate->passes());
});

@anhskohbo
Copy link
Owner

I don't use curl anymore e295410

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants