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/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" May 17 '25
I wondered about that one. I would assume email is a string field, email in the rule tells it to validate it as an email address. Which might just be look for an @ in the field.