From f88472c9a51ef470e0bbb5a2a0314571424985e7 Mon Sep 17 00:00:00 2001 From: Ivor Barhansky Date: Mon, 29 Apr 2024 15:07:33 +0000 Subject: [PATCH] Update RegisterValidator.php MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Идиотские ошибки. --- RegisterValidator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RegisterValidator.php b/RegisterValidator.php index a51a8a8..9556f0b 100644 --- a/RegisterValidator.php +++ b/RegisterValidator.php @@ -62,8 +62,8 @@ class RegisterValidator if ( $this->loginIsAllowed($login) && !$this->loginIsMixed($login) && - mb_strlen($login <= $this->loginLength['min']) && - mb_strlen($login) >= $this->loginLength['max'] && + mb_strlen($login) >= $this->loginLength['min'] && + mb_strlen($login) <= $this->loginLength['max'] && !strpos("!@#$%^&*()\+|/'\"", $login) ) { $this->login = $login;