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

    How to trim input fields

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    login theme
    4
    5
    1.9k
    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.
    • A
      a.hauck-groninger
      last edited by

      Hi!

      We are using FusionAuth Theme Templates where we designed our login page and so on.
      We have the recurring problem that users enter their e-mail address with a space before or after the address and can not login. The same problem occurs on the 'Forgot password' page where they add a space an never receive the e-mail.

      Is it somehow possible to automatically trim the e-mail input, maybe with the helpers macro?

      Any help would be appreciated.

      Thanks and greetings from Germany

      Annika

      1 Reply Last reply Reply Quote 1
      • F
        FusionAuth007
        last edited by

        Hi

        I just want to add +1 to this question, as we are in the exactly same position as a.hauck-groninger. Primarily, our users experience this when auto-filling a field on Android.

        Thanks from Denmark 😊

        Mathias

        F 1 Reply Last reply Reply Quote 1
        • F
          FusionAuth007 @FusionAuth007
          last edited by

          Just bumping this to the top. Is there anyone, who can help us out on this one? ☺️

          M 1 Reply Last reply Reply Quote 0
          • G
            glen
            last edited by

            There is an enhancement request, with a workaround, here.

            (IMO, this is a bug.)

            1 Reply Last reply Reply Quote 2
            • M
              matthartstonge @FusionAuth007
              last edited by

              @fusionauth007 yo! I filed a Github report on this, check out Trim whitespace from user input on backend (username/emails) #1779

              I’ve detailed a workaround we’ve got running in prod 👍

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