Answer the question
In order to leave comments, you need to log in
How to check reCaptcha in Passport?
I would like to make a single registration and login form.
When registering, I directly transfer data via api to the controller, and process everything there . I
use laravel Passport, those front on Vue separately, API separately
. So, in AuthServiceProvider, following the instructions, I made Passport: )
That is, the framework took over all the checks, but the fact is that it does not process reCaptcha
in any way. Where and how should this line be added?
Answer the question
In order to leave comments, you need to log in
Laravel Passport should never check your captcha. His job is simple - to receive a request with tokens and give something in response. You implement the captcha check yourself. If you are using Google reCaptcha, then read the documentation. There you need to send a POST request to their server, and in response you should receive JSON whether the user is verified or not.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question