Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Username validator defaults to requiring an email even if userType is not UT.email #495

Open
richardhaven opened this issue May 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@richardhaven
Copy link

        widget.userValidator ?? FlutterLogin.defaultEmailValidator;

This should set specific validators based on userType (which might want an alias like userNameType)

To Reproduce
Steps to reproduce the behaviour:

  1. run an app with a FlutterLogin.userType = UserType.text;
  2. enter a non-email username
  3. submit
    Note the error message: Invalid email!

Expected behavior
appropriate validate for each value of UserType

Screenshots
screenshot FlutterLogin with a non-email

Workaround
Set an explicit validator

@richardhaven richardhaven added the bug Something isn't working label May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant