mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Fix creating very uncommon (bugged) account names
(cherry picked from commit 0326657d60c3f44bbd64d5cb22d4cbc5499dea88)
This commit is contained in:
parent
de1d6b9629
commit
60eac97945
@ -91,7 +91,7 @@ class Validator
|
||||
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.';
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user