hydra-sql/src/Altcha/Form/AltchaModel.php
Gauthier DUPONT 934eefa802
Some checks reported warnings
Cadoles/hydra-sql/pipeline/pr-develop This commit is unstable
feat(altcha): add altcha validation layer to login
2025-04-02 15:04:29 +02:00

40 lines
583 B
PHP

<?php
namespace App\Altcha\Form;
use Symfony\Component\Validator\Constraints as Assert;
class AltchaModel
{
/**
* @Assert\NotBlank()
* @Assert\Regex("/^(SHA-1|SHA-256|SHA-512)$/")
*/
public string $algorithm;
/**
* @Assert\NotBlank()
*/
public string $challenge;
/**
* @Assert\NotBlank()
*/
public string $salt;
/**
* @Assert\NotBlank()
*/
public int $number;
/**
* @Assert\NotBlank()
*/
public string $signature;
/**
* @Assert\NotBlank()
*/
public int $took;
}