diff options
Diffstat (limited to 'includes/models/account.php')
-rw-r--r-- | includes/models/account.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/includes/models/account.php b/includes/models/account.php index 695a90b..ef253c6 100644 --- a/includes/models/account.php +++ b/includes/models/account.php @@ -49,9 +49,21 @@ class TMWAccount if (strlen($this->username) < 4) $errors[] = "Username is too short"; + if (strlen($this->username) >= 24) + $errors[] = "Username is too long"; + if (strlen($this->password) < 4) $errors[] = "Password is too short"; + if (strlen($this->password) >= 24) + $errors[] = "Password is too long"; + + if (strlen($this->email) < 4) + $errors[] = "EMail is too short"; + + if (strlen($this->email) >= 40) + $errors[] = "EMail is too long"; + if (!check_chars($this->username)) $errors[] = 'Username contains invalid characters. ' . BAD_STRING_DESC; @@ -99,4 +111,4 @@ class TMWAccount } } -?>
\ No newline at end of file +?> |