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

forgotPassword not working? #600

Closed
Jun711 opened this issue Apr 5, 2018 · 2 comments
Closed

forgotPassword not working? #600

Jun711 opened this issue Apr 5, 2018 · 2 comments

Comments

@Jun711
Copy link

Jun711 commented Apr 5, 2018

Do you want to request a feature or report a bug?

I think it could be my configuration of user pool? or the way I signed up a user using Auth is not correct?

What is the current behavior?

I got this error when I try to reset password for a registered and confirmed user (because I could authenticate and sign in with that email).
Cannot reset password for the user as there is no registered/verified email or phone_number

My user pool configured to use email addr as username:

Email address or phone number - Users can use an email address or phone number as their "username" to sign up and sign in.
Allow email addresses

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than AWS Amplify.

I had this to signUp and forgotPassword to reset password. I noticed my username appears as hash on cognito. So, that could be the problem that it couldn't find my email. However, it doesn't allow me to sign up using the same email though.

Auth.signUp({
      username: email,
      password: pwd,
      attributes: {
        email, nickname, picture
      }
    });
Auth.forgotPassword(username)
    .then(data => console.log(data))
    .catch(err => console.log(err));

What is the expected behavior?

expect cognito to be able to recognize my email address.

Which versions of Amplify, and which browser / OS are affected by this issue? Did this work in previous versions?

0.2.14

You can turn on the debug mode to provide more info for us by setting window.LOG_LEVEL = 'DEBUG'; in your app.
pack

@Jun711
Copy link
Author

Jun711 commented Apr 5, 2018

I deleted and re-signed up using the same user and it is working now. not sure what the bug was.

@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant