mirror of https://github.com/pixelfed/pixelfed.git
Merge pull request #2941 from rfonseca/rfonseca-patch-1
Fix starting check of username to allow numbers.
This commit is contained in:
commit
3d2c98c033
|
@ -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.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue