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 Username option? only seems to be Auth.forgotPassword #5851

Open
dymyll opened this issue May 20, 2020 · 7 comments
Open

Forgot Username option? only seems to be Auth.forgotPassword #5851

dymyll opened this issue May 20, 2020 · 7 comments
Labels
Auth Related to Auth components/category Cognito Related to cognito issues feature-request Request a new feature Service Team Issues asked to the Service Team

Comments

@dymyll
Copy link

dymyll commented May 20, 2020

Is your feature request related to a problem? Please describe.
I'm interested in helping the user resolve their forgotten credential sign-in issues. There doesn't seem to be a way to help the user if they forgot their USERNAME only password. This is a common issue and can be really useful.
Describe the solution you'd like
A feature to allow the user to enter their email in order to receive a username or related information.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
I noticed Auth.forgotPassword(username: string, clientMetadata?: ClientMetadata) excepts an optional parameter "clientMetadata?" Would an email be able to be entered there?
Please help

Code Snippet
Auth.forgotPassword(username) .then(data => {console.log(data)}) .catch(err => {console.log(err)}); })

@dymyll dymyll added the feature-request Request a new feature label May 20, 2020
@manueliglesias manueliglesias added the Auth Related to Auth components/category label May 21, 2020
@wazcov
Copy link

wazcov commented Aug 1, 2020

I can't believe this feature doesn't exist. I've also tried playing about with all the options of the <AmplifyForgotPassword component to no avail. We must be able to let users either:

  • reset their password using their email address or
  • allow a forgot username component that takes in an email address

@hmisonne
Copy link
Contributor

hmisonne commented Jan 5, 2021

Any update on this feature? It would be very useful!!

@mozadeh
Copy link

mozadeh commented Apr 13, 2021

This is a very important feature that is missing.

@jdoxit
Copy link

jdoxit commented Jul 27, 2021

++

1 similar comment
@parthkanani93
Copy link

++

@klaurtar
Copy link

klaurtar commented Feb 9, 2023

Is this feature every going to be on the roadmap? It would have saved me 3 days of Cognito Migrations to use email based authentication instead 🥶

@cwomack cwomack added Cognito Related to cognito issues Service Team Issues asked to the Service Team labels Feb 9, 2023
@pjsandwich
Copy link

This would be a great feature, understandably it would likely require the dev team to have a verified phone or email attached to the cognito user, but as long as that requirement is fulfilled this would definitely improve end users of the products being developed with amplify and enable more secure user management.

However, a temporary work-around could be to set up a table with user data that has the username and email. Have the users username and associated email written to the table when they sign up or if you have existing users which you'd like to add to this table write a script to write this data into the table.

Then, create a function that can fulfill the functionality of appropriately finding the username of the user from your table and send the user an email that reminds them of their username. You could probably add a layer here that first sends the user an email warning them of this activity with a link to either report this as potential malicious activity or to confirm this action and then send a follow up email with their username queried from this table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auth Related to Auth components/category Cognito Related to cognito issues feature-request Request a new feature Service Team Issues asked to the Service Team
Projects
None yet
Development

No branches or pull requests

10 participants