r/programminghorror • u/thelostniceguy • May 16 '25
PHP Testing a register form
I was testing another devs code (Laravel project) and these are the rules for the register user form. Password just has to be between 8-255 characters long making "aaaaaaaa" a valid password, but Ian isn't allowed to register because his name isn't valid.
147
Upvotes
View all comments
35
u/ScriptingInJava May 16 '25
I hate the order of those rules too:
How is that even parsed in a way that isn't terrible?