Menlam Choden
Menlam Choden

Reputation: 49

My laravel recaptcha not working, how to integrate?

I added google recpatcha which was working in login form . Then I used auth::routes for forgot password reset. This made recaptcha to not work.

Upvotes: 0

Views: 1629

Answers (1)

VIKAS KATARIYA
VIKAS KATARIYA

Reputation: 6005

if someone is still pulling their hair because of this issue just remove the 'recaptcha' in validation rule.

use

'g-recaptcha-response' => 'required'
instead of

'g-recaptcha-response' => 'required|recaptcha'
see http://tuts.codingo.me/google-recaptcha-in-laravel-application/

or

<div class="g-recaptcha" 
           data-sitekey="{{env('GOOGLE_RECAPTCHA_KEY')}}">
</div>

Upvotes: 1

Related Questions