FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Can we make login api case-insensitive ?

    Scheduled Pinned Locked Moved Unsolved Q&A
    3 Posts 2 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      simo.adonis
      last edited by

      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?

      danD 1 Reply Last reply
      Reply Quote 0
      • danD
        dan @simo.adonis
        last edited by

        @simo-adonis

        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!

        --
        FusionAuth - Identity Without Constraints
        https://fusionauth.io

        danD 1 Reply Last reply
        Reply Quote 1
        • danD
          dan @dan
          last edited by

          @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!

          --
          FusionAuth - Identity Without Constraints
          https://fusionauth.io

          1 Reply Last reply
          Reply Quote 0
          • danD dan moved this topic from Q&A on
          • danD dan moved this topic from Frequently Asked Questions (FAQ) on

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post