title: AWS Amplify: Forgot password function with custom UI
body: <p>I am trying to implement a login page containing a "Forgot password?" button which opens a form that then allows the user to submit an email, which at the same time is the username, and if that entry exists within Cognito a reset password process should be started.</p>
  
  <p>One of the issues I have had so far is that I'm not sure how to actually get the corresponding username from Cognito, as all the email logins seem to get assigned unique hashs and are not stored in plain text within Cognito. </p>
  
  <p><a href="https://github.com/aws/aws-amplify/blob/257a41a/packages/aws-amplify/src/Auth/Auth.ts#L35" rel="nofollow noreferrer">I had a look at the code below line 1000 here in the docs</a> but this also seems to assume that you have the corresponding username and other attributes.</p>
  
  <p>(Signups should be only possible by admins, currently simply through the AWS console).</p>
  
  <p>Any ideas on how this could be implemented? Thanks!</p>