mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 03:09:22 +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.';
|
$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
|
// end name restriction
|
||||||
if (strlen($_POST['password']) < 6) {
|
if (strlen($_POST['password']) < 6) {
|
||||||
$errors[] = 'Your password must be at least 6 characters.';
|
$errors[] = 'Your password must be at least 6 characters.';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user