accounts/common/validators/PasswordValidate.php
ErickSkrauch 8906370bb9 Образован хелпер Error, в который вынесены все коды ошибок.
Подкорректирован errorDict на фронте
2016-06-16 23:32:23 +03:00

17 lines
380 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace common\validators;
use common\helpers\Error as E;
use yii\validators\StringValidator;
/**
* Класс должен реализовывать в себе все критерии валидации пароля пользователя
*/
class PasswordValidate extends StringValidator {
public $min = 8;
public $tooShort = E::PASSWORD_TOO_SHORT;
}