shzk
5/6/2018 - 9:14 AM

User.php

public static function checkName($name) {
        if (strlen($name) >= 2) {
            return true;
        }
        return false;
    }
if (trim($_POST['password']) == '') {
        $errors[] = "Введите пароль";
    }