DarkGhostHunter / Captchavel

Integrate reCAPTCHA into your Laravel app better than the Big G itself!
MIT License
96 stars 18 forks source link

Disable reCAPTCHA on authenticated users #41

Closed DarkGhostHunter closed 2 years ago

DarkGhostHunter commented 2 years ago

When a user is authenticated, it should be possible to programmatically disable the recaptcha check from the middleware.

An alternative could be to have the a third option on the recaptcha to note on which guards (or guards) the reCAPTCHA should be bypassed.

Route::post('message', function () {
   // ...
})->middleware('recaptcha:checkbox,g-recaptcha-response,web');

This would only on V2 challenges.

DarkGhostHunter commented 2 years ago

Done in #43