mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-15 17:24:29 +02:00
Fix creating very uncommon (bugged) account names
This commit is contained in:
parent
fcff820858
commit
0326657d60
@ -91,7 +91,7 @@ class Validator
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!preg_match("/[A-Z0-9]/i", $name))
|
if(!preg_match("/^[A-Z0-9]+$/i", $name))
|
||||||
{
|
{
|
||||||
self::$lastError = 'Invalid account name format. Use only A-Z and numbers 0-9.';
|
self::$lastError = 'Invalid account name format. Use only A-Z and numbers 0-9.';
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user