registration bug

This commit is contained in:
Ivor Barhansky 2023-01-10 20:29:27 +02:00
parent bbb35c19f9
commit 7b822fe884

View File

@ -142,7 +142,7 @@ class UserRegister
public function new(string $login, string $password, string $email, $ref, $birthday, int $sex, int $class): string public function new(string $login, string $password, string $email, $ref, $birthday, int $sex, int $class): string
{ {
if (!$this->hasGoodLogin()) { if (!$this->hasGoodLogin($login)) { //fixme: грязный хак, но лучше не придумывается с этой пошаговостью.
return 0; return 0;
} }
$this->class = $class; $this->class = $class;