From ac15af28686d0b84828528b7885cd52dca145e0f Mon Sep 17 00:00:00 2001 From: "Stefan A. Brannfjell" Date: Wed, 11 Jan 2017 15:10:30 +0100 Subject: [PATCH] Account name length restriction Complies with default TFS 1.0 schema.sql structure. --- register.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/register.php b/register.php index 2d64f08..3e51c65 100644 --- a/register.php +++ b/register.php @@ -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.';