Revived API POST /api/v1/captcha.

Captcha validation has been adjusted.
This commit is contained in:
2023-11-26 15:09:42 +06:00
parent 18899c81f2
commit 520a3ba068
21 changed files with 365 additions and 12 deletions

View File

@@ -21,7 +21,7 @@ final readonly class CaptchaHandler
$captcha = $captchaToken->captchas()->create([
'uuid' => $this->uuidCommand->unique($captchaToken->captchas()->getQuery(), 'uuid')
]);
$this->captchaLogHandler->handleStore($captcha, CaptchaLogType::Created, $httpUserData);
$this->captchaLogHandler->handleStore($captcha->id, CaptchaLogType::Created, $httpUserData);
return $captcha;
}