mirror of
https://github.com/elyby/accounts.git
synced 2026-10-20 12:48:07 +05:30
23 lines
416 B
PHP
23 lines
416 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace api\components\Captcha;
|
|
|
|
trait CaptchaTrait {
|
|
|
|
public mixed $captcha = null;
|
|
|
|
public mixed $captchaType = null;
|
|
|
|
/**
|
|
* @return list<array<int|string, mixed>>
|
|
*/
|
|
protected static function getCaptchaValidationRules(): array {
|
|
return [
|
|
['captcha', CaptchaValidator::class],
|
|
['captchaType', 'safe'],
|
|
];
|
|
}
|
|
|
|
}
|