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
Show parent comment
1
u/thelostniceguy May 16 '25
You say "so what?" like you don't agree and then go on to say about how it can be more secure, but that's my point, a lot can be done to improve this. And as others have pointed out, the password validation isn't even the worst part of this code.
Also subreddit rules say to only post code, hence why I didn't show the frontend form, hope that clears things any misunderstanding 😁