Revived API POST /captcha/{captcha_uuid}.
Receiving captcha information for validation.
This commit is contained in:
		@@ -0,0 +1,31 @@
 | 
			
		||||
<?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 VerificationInformationDto extends Dto
 | 
			
		||||
{
 | 
			
		||||
    public function __construct(
 | 
			
		||||
        private CaptchaToken $captchaToken,
 | 
			
		||||
        private HttpUserData $httpUserData,
 | 
			
		||||
        private ?string $userAgent = null,
 | 
			
		||||
    ) { }
 | 
			
		||||
 | 
			
		||||
    public function getCaptchaToken(): CaptchaToken
 | 
			
		||||
    {
 | 
			
		||||
        return $this->captchaToken;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function getUserAgent(): ?string
 | 
			
		||||
    {
 | 
			
		||||
        return $this->userAgent;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function getHttpUserData(): HttpUserData
 | 
			
		||||
    {
 | 
			
		||||
        return $this->httpUserData;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user