• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
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
2.0k
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 20 Apr 2022, 12:38

    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 21 Apr 2022, 08:01

      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 8 Jul 2022, 10:26 Reply Quote 1
      • F
        FusionAuth007 @FusionAuth007
        last edited by 8 Jul 2022, 10:26

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

        M 1 Reply Last reply 9 Jul 2022, 11:46 Reply Quote 0
        • G
          glen
          last edited by 9 Jul 2022, 11:00

          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 9 Jul 2022, 11:46

            @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