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

"Forgot password" e-mail input gets wiped out when a connectionResolver is configured #2038

Closed
Luiz-Faleiro opened this issue Sep 16, 2021 · 6 comments · Fixed by #2048 or #2054
Closed
Labels
bug report This issue reports a suspect bug or issue with the SDK itself

Comments

@Luiz-Faleiro
Copy link

Describe the problem
The e-mail input on the "Forgot password" page is wiped out if a connectionResolver is configured.

What was the expected behavior?
Once the user enters the e-mail address on the "Login" page, this e-mail address should be copied to the e-mail input on the "Forgot password" page.

Reproduction

  • Without connectionResolver:
    Without connectionResolver

  • With connectionResolver:
    With connectionResolver

P.S. "Esqueceu sua senha?" stands for "Did you forget your password?" in Portuguese, as shown in the gifs above.

Environment

  • Version 11.30.0
@stevehobbsdev
Copy link
Contributor

Thanks for reporting this @Luiz-Faleiro, let me look into it 👍🏻

@stevehobbsdev stevehobbsdev added the bug report This issue reports a suspect bug or issue with the SDK itself label Sep 17, 2021
@stevehobbsdev
Copy link
Contributor

@Luiz-Faleiro looking into this today. Do you have an example of how connectionResolver is configured in your case?

Having said that, I'm immediately running into issues just by having one configured. It's just taking some time to pick apart.

@stevehobbsdev
Copy link
Contributor

This is the culprit:

usernameStyle === 'email' && resolver === undefined ? (

Looking back at it, this was intentional; as the comment says, the rules around connection and validation could change by the time you hit the submit button if you're using a custom resolver, so we assume what you enter is a username.

However, that doesn't work when you want to use the forgot password feature, which always requires an email address. I'll figure something out 👍🏻

@Luiz-Faleiro
Copy link
Author

@stevehobbsdev I just sent you a DM on the Auth0 community with the Universal Login page we are using on our project. Let me know if you need anything!

@stevehobbsdev
Copy link
Contributor

Thanks @Luiz-Faleiro, I opened #2048 which should fix the issue 👍🏻

@Luiz-Faleiro
Copy link
Author

@stevehobbsdev thank you for your support!

@stevehobbsdev stevehobbsdev linked a pull request Oct 15, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report This issue reports a suspect bug or issue with the SDK itself
Projects
None yet
2 participants