User can register with mixed-case names e.g. Test but then cannot log in.
Steps to reproduce
Register with username Test
Try to log in with username Test
The registration code case-folds the username to lowercase, so the registered username is actually test. However, the login code doesn't perform this case-folding, so login fails.
Background information
go version
: 1.17.3Description
User can register with mixed-case names e.g.
Test
but then cannot log in.Steps to reproduce
Test
Test
The registration code case-folds the username to lowercase, so the registered username is actually
test
. However, the login code doesn't perform this case-folding, so login fails.References:
ParseUsernameParam
may be a good place to make this change, dunno