diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-10-20 22:26:22 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2009-10-20 22:26:22 +0200 |
commit | d66defa74e2db2215061e4206e7282497c769158 (patch) | |
tree | 61c67053cfdd320ea9bafd8525d448aff795a81d /includes/models/account.php | |
parent | f92f66d5303b5fc3d8116404559cea6e15c7ec39 (diff) | |
parent | 3b28b034f2a6f263c958b84adf87f096e8440155 (diff) | |
download | website-d66defa74e2db2215061e4206e7282497c769158.tar.gz website-d66defa74e2db2215061e4206e7282497c769158.tar.bz2 website-d66defa74e2db2215061e4206e7282497c769158.tar.xz website-d66defa74e2db2215061e4206e7282497c769158.zip |
Merge remote branch 'online-account-registration/master'
Conflicts:
includes/models/account.php
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 +?> |