mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Переименован класс валидатора пароля
This commit is contained in:
16
common/validators/PasswordValidator.php
Normal file
16
common/validators/PasswordValidator.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
namespace common\validators;
|
||||
|
||||
use common\helpers\Error as E;
|
||||
use yii\validators\StringValidator;
|
||||
|
||||
/**
|
||||
* Класс должен реализовывать в себе все критерии валидации пароля пользователя
|
||||
*/
|
||||
class PasswordValidator extends StringValidator {
|
||||
|
||||
public $min = 8;
|
||||
|
||||
public $tooShort = E::PASSWORD_TOO_SHORT;
|
||||
|
||||
}
|
Reference in New Issue
Block a user