pop-os / installer

Installer for Pop!_OS & other Linux-based OSes
https://system76.com/pop
GNU General Public License v3.0
26 stars 16 forks source link

Fixes for usernames and real names #266

Closed mmstick closed 2 years ago

mmstick commented 2 years ago

Closes #261

jacobgkau commented 2 years ago

I understand numbers are allowed in usernames, but not as the first character. 9db2146 doesn't allow a number until the third character. Is it supposed to allow it for the second character? (This also applies to underscores, periods, and dashes.)

jacobgkau commented 2 years ago

I think it's because it's currently checking if text.str.length > 1 before deciding whether those characters should be allowed, and that would only be true if it's 2 or more. It should probably either be greater than or equal to 1, or greater than 0.