Closed k-wolf-dev closed 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because of inactivity. Please open a new issue if are still encountering problems.
Hi :wave: Sorry this was auto-closed by stale bot. We are working towards preventing this from happening in the future. Please let us know if you are still experiencing this issue and in need of assistance.
Thanks @chrisbonifacio. This issue is actually now covered in aws-amplify/amplify-js#8432 which has more details and is still open. Happy to close this one out and refer to aws-amplify/amplify-js#8432. Also, happy to provide more details for the repro. thanks!
This is a duplicate of #290 as stated by @k-wolf-dev . I'm closing this issue for now, since it's tracked in 290.
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication
Amplify Categories
auth
Environment information
Describe the bug
AmplifyAuthenticator does not properly submit filled in formfield text if Create Account had failed validation once. Previously filled in attributes are set as empty (First Name, Given Name)
May be related to bug: aws-amplify/amplify-js#6885
Expected behavior
Expected after correcting issue, previously filled in text would be submitted properly.
Reproduction steps
Use Amplify Authenticator and
Specify custom form fields as below (Email, PasswordFirstName and GIven Name)
Set required both on FormField and individual property
Fill out all information properly but type in a conflicting username that already exists.
Click Create Account
Create Account fails with error (username already exists)
Fix username. All other fields are still filled with proper values. Click Create Account
Form is accepted and account is created
However, FIrstname and gIven name are stored as empty attributes
Note: For 7: In fixing the username, the password is field is warned as being empty when Create Account is clicked even though it is filled. if password field is fixed, then the username is warned as being empty when clicking Create Account. Fixing both at the sametime and clicking Create account works.
Code Snippet
// Put your logs below this line