mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +02:00
Increased the mininum lenght and decreased the maxinum lenght
This commit is contained in:
parent
a6beb0d2d5
commit
654c038eab
@ -21,10 +21,10 @@ $save = isset($_POST['save']) && $_POST['save'] == 1;
|
||||
if($save) {
|
||||
if(empty($newchar_name))
|
||||
$errors['name'] = 'Please enter a name for your character!';
|
||||
else if(strlen($newchar_name) > 25)
|
||||
$errors['name'] = 'Name is too long. Max. lenght <b>25</b> letters.';
|
||||
else if(strlen($newchar_name) < 3)
|
||||
$errors['name'] = 'Name is too short. Min. lenght <b>3</b> letters.';
|
||||
else if(strlen($newchar_name) > 21)
|
||||
$errors['name'] = 'Name is too long. Max. lenght <b>21</b> letters.';
|
||||
else if(strlen($newchar_name) < 4)
|
||||
$errors['name'] = 'Name is too short. Min. lenght <b>4</b> letters.';
|
||||
else {
|
||||
if(!admin() && !Validator::newCharacterName($newchar_name)) {
|
||||
$errors['name'] = Validator::getLastError();
|
||||
|
Loading…
x
Reference in New Issue
Block a user