mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-29 18:59:21 +02:00
Account name length restriction
Complies with default TFS 1.0 schema.sql structure.
This commit is contained in:
parent
138f03ce99
commit
ac15af2868
@ -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.';
|
||||
|
Loading…
x
Reference in New Issue
Block a user