Revived API /api/v1/captcha.

Now a new captcha is created to check for a bot.
This commit is contained in:
kor-elf committed 2023-09-19 14:27:33 +06:00
1 parent 56cd409301
commit 27046e6674
22 files changed
+525 -101

No files matched your search

@@ -0,0 +1,25 @@
<?php declare(strict_types=1);
namespace App\Dto\Request\Api\V1\Captcha;
use App\Dto\HttpUserData;
use App\Dto\Request\Dto;
use App\Models\CaptchaToken;
final readonly class CaptchaPublicToken extends Dto
{
public function __construct(
private CaptchaToken $captchaToken,
private HttpUserData $httpUserData
) { }
public function getCaptchaToken(): CaptchaToken
{
return $this->captchaToken;
}
public function getHttpUserData(): HttpUserData
{
return $this->httpUserData;
}
}