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

    Can we make login api case-insensitive ?

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    3
    421
    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 - Auth for devs, built by devs.
        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 - Auth for devs, built by devs.
          https://fusionauth.io

          1 Reply Last reply Reply Quote 0
          • First post
            Last post