Post AHCEaQfDC2BeuZKkHQ by ampache@fosstodon.org
 (DIR) More posts by ampache@fosstodon.org
 (DIR) Post #AHCEaQfDC2BeuZKkHQ by ampache@fosstodon.org
       2022-03-08T07:48:27Z
       
       0 likes, 0 repeats
       
       What is the longest length a username should be?i just realised the Ampache username column allows 255 characters!
       
 (DIR) Post #AHCHqFWgfZNErga7jU by edgren@fosstodon.org
       2022-03-08T08:24:55Z
       
       0 likes, 0 repeats
       
       @ampache 255 characters long limit?! 🤯 It's not like you want to do a new Llanfair­pwllgwyngyll­gogery­chwyrn­drobwll­llan­tysilio­gogo­goch[1] 😬I always have set the limit to 20 characters. Everything above that is too long in my eyes, even if 20 characters are too long to start with.[1]: https://largest.org/geography/city-names/
       
 (DIR) Post #AHCI23S3OAbotI2l8a by ampache@fosstodon.org
       2022-03-08T08:27:03Z
       
       0 likes, 0 repeats
       
       @edgren I haven't changed the database a lot since i took over a few years ago but i was going to at least cut it to 64
       
 (DIR) Post #AHCIQpcRxDabEKikam by edgren@fosstodon.org
       2022-03-08T08:31:32Z
       
       0 likes, 0 repeats
       
       @ampache Good 😌 Can you see if anyone have a username near 64 characters?
       
 (DIR) Post #AHCIXMRSpgRglXhCCG by ampache@fosstodon.org
       2022-03-08T08:32:43Z
       
       0 likes, 0 repeats
       
       @edgren sure can! i think i'll put it as a warning until a future release"Hey! i notice your username is ridiculous! maybe change that?"
       
 (DIR) Post #AHCSY0tOkPHnYmvjEm by arious@fosstodon.org
       2022-03-08T10:24:53Z
       
       0 likes, 0 repeats
       
       @ampache I'm curious how you'll go about doing this. I suppose you could first disallow creation of new accounts exceeding 64 chars. Then it would be a case of giving good deprecation warnings to those with installations.
       
 (DIR) Post #AHCSy1hoLZQxbwukcK by ampache@fosstodon.org
       2022-03-08T10:29:34Z
       
       0 likes, 0 repeats
       
       @arious first up limits on the api and the HTML site for creation.There's a function for warning messages as well which will be used for admins.Then I'll keep it open until ampache 6 where it gets cut back.Give everyone a good few months and then cut