Can we make login api case-insensitive ?
-
Hi ! i've noticed that when we call the login API it refuses to log in if the username/email is written in a different case than the one inserted in the DB.
And this is a problem for use, is it possible to turn off that behavior? -
There's no current way to do this within FusionAuth.
One option would be to update all your users to have uppercase username/emails via the Update User API, then whenever you call the login API, uppercase the username/email value before submitting it.
Please feel free to file a feature request outlining this feature/use case in more detail if you'd like FusionAuth to support it.
Thanks!
-
@simo-adonis , another team member took a look at this forum post and tested against an instance in our cloud. He saw case-insensitive matching of username and password.
Can you please provide more details about the behavior you are seeing?
- version of FusionAuth
- backing database (mysql or postgresql)
- how you are adding users
- an example of a username or email address that doesn't work in a case insensitive manner
Thanks so much!