@neo will know this without looking it up
Rob, whats the longest username on the forum? Am I safe to validate usernames as <32 chars?
Or should I go to 48?
@neo will know this without looking it up
Rob, whats the longest username on the forum? Am I safe to validate usernames as <32 chars?
Or should I go to 48?
Nope looking to build validation rules for a form that will take the username
if len(username) > 20:
return 'Invalid username. Must be no more than 20 characters.', 400
And for sure someone will request that they can have 24 chars in their username and you know Murphy we will forget that you need it 20 or less.
Iโd for good programming practice allow up to 40 chars or more like your 48. Thatโll cover 32 or 35 name length request. It is extremely rare for anyone to want more than 30 let alone 32 or 35 and 40 will make absolutely sure