Universal Login: Email/username is not trimmed

Users are unable to login due to an extra space that is at the end of their username for their email for example: "test@test.com " - this is not an exact match causing a username/email error. Can the username field call .trim() on all inputs?

Thanks

Hi @dan.patten.bt,

You can workaround this issue in a couple of ways:

  1. You could use an Action script to update the username to strip the whitespace at the end. You could do this either in a pre-user registration post-login action script, depending on whether the user signs up as usual, or if you create the user on their behalf.
  2. You could perform an export of these users, strip the white space at the end, and import them back into your database connection.

Ultimately, finding the root cause of this problem might be a good idea to save on overhead and complexity.

Let me know if you have any questions.

Thanks,
Rueben

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.