3 ms·
I see the reasoning behind trimming trailing spaces, but it could cause at least as many problems as it solves. Plenty of people use automatically generated pa
by tempestn 11y ago
I see the reasoning behind trimming trailing spaces, but it could cause at least as many problems as it solves. Plenty of people use automatically generated passwords, and while hopefully most auto-generators don't include spaces, I expect some might. Better might be to warn the user if their password has a trailing space.
- nothrabannosir 11y agoIs there any password generator in this reality which does that? Serious question. More than zero?
- tempestn 11y agoProbably not a serious one, but a lot of people write their own little scripts and utilities to do this. So definitely more than zero. Perhaps not a significant number, but I'd still be concerned about changing a user's entered password without letting them know. relearn's solution is a good one though.
- deleted 11y ago[deleted]
- relearn 11y agoCould you not trim spaces upon attempted login as well to make this a non-issue? I do like the idea of warning the user upon creation.
- tempestn 11y agoGood idea; I agree that that's better.
- serge2k 11y agoI would guess the number of people who accidently enter "password " is far greater than the number of people who have "p " as their password. Plus, for the people who do deliberately input spaces they will just have a weaker password, not issues logging in.