Merge pull request #2941 from rfonseca/rfonseca-patch-1

Fix starting check of username to allow numbers.
This commit is contained in:
daniel 2021-10-19 20:45:55 -06:00 committed by GitHub
commit 3d2c98c033
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ class RegisterController extends Controller
return $fail('Username is invalid. Can only contain one dash (-), period (.) or underscore (_).'); return $fail('Username is invalid. Can only contain one dash (-), period (.) or underscore (_).');
} }
if (!ctype_alpha($value[0])) { if (!ctype_alnum($value[0])) {
return $fail('Username is invalid. Must start with a letter or number.'); return $fail('Username is invalid. Must start with a letter or number.');
} }