Хороним $_COOKIE['pass'], отказываемся от md5('pass'). Это не регистрация, а чёрная дыра!
This commit is contained in:
@@ -14,4 +14,9 @@ class PassGen
|
||||
$length
|
||||
);
|
||||
}
|
||||
|
||||
public static function intCode($length = 8): int
|
||||
{
|
||||
return mt_rand(10 ** ($length - 1), 10 ** $length - 1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user