4 ms·
I don't think the solution is to validate it everytime you use that data/value. I fail to see how you mitigate the issue with the second validation. You have du
by themihai 10y ago
I don't think the solution is to validate it everytime you use that data/value. I fail to see how you mitigate the issue with the second validation. You have duplicate records so hoe you fix it? Shouldn't you check duplicate sccounts on sign up?
- ifoundthetao 10y agoYou're still thinking too small. It isn't about validation for duplicate accounts, and by the way, this gets past that duplicate account validation, because "admin" is different from "admin' --" You get around it by parameterizing your queries, and not blindly trusting data that comes from the database.