Fixed OTHIRE account registration bug

This commit is contained in:
Znote 2019-04-04 00:53:28 +02:00
parent e64032e630
commit 15689d3aed

View File

@ -44,6 +44,9 @@ if (empty($_POST) === false) {
if (preg_match("/^[0-9]+$/", $_POST['username']) == false) {
$errors[] = 'Your account can only contain numbers 0-9.';
}
if ((int)$_POST['username'] < 100000 || (int)$_POST['username'] > 999999999) {
$errors[] = 'Your account number must be a value between 6-8 numbers long.';
}
}
// name restriction
$resname = explode(" ", $_POST['username']);