Open anthonybudd opened 3 years ago
//api function
public function captcha()
{
return $this->success(['captcha'=>app('captcha')->create('default', true)]);
}
//check api key
if(!captcha_api_check(\request('captcha'),\request('key')))
{
return $this->fail('captcha error',40001);
}
Can you provide better docs for Stateless mode?
How am I meant to get the $key param? Should that be sent by the user in the form request or is this retrieved by the back-end in a different?
very confusing?