Account name length restriction

Complies with default TFS 1.0 schema.sql structure.
This commit is contained in:
Stefan A. Brannfjell 2017-01-11 15:10:30 +01:00 committed by GitHub
parent 138f03ce99
commit ac15af2868

View File

@ -50,6 +50,9 @@ if (empty($_POST) === false) {
$errors[] = 'Too short words in your name.';
}
}
if (strlen($_POST['username']) > 32) {
$errors[] = 'Your account name must be less than 33 characters.';
}
// end name restriction
if (strlen($_POST['password']) < 6) {
$errors[] = 'Your password must be at least 6 characters.';