amplify-cli icon indicating copy to clipboard operation
amplify-cli copied to clipboard

Email/Username case sensitive and uniqueness

Open rskinnerc opened this issue 8 years ago • 5 comments

Describe the bug While using Amplify CLI to add auth functionality, the default cognito configuration allows multiple accounts with the same email and furthermore, with the same username if there are only some uppercase or lowercase chars.

So your user can signUp with an user "MyUser" and then someone else can signUp with a username "myuser", and even further, both of them can have the same email.

To Reproduce

  1. run amplify add auth (With manual or default setup)
  2. run amplify push
  3. Implement sign up front-end and sign up several users with the same username and email. You can try different lowercase and uppercase variations
  4. The users with the same email and same username (Only differences in cases) are in cognito dashboard.

Expected behavior I think this is the expected behavior given the final cognito configuration... BUT the advanced set up should allow us to set the uniqueness of an email and the way to check if the username exists even when the only variation is the cases.

Desktop (please complete the following information):

  • OS: Ubuntu 16.04
  • Browser: Chrome, Firefox
  • Version: 0.1.22

image

Look at that, same username, only case variations and, all of them the same email

rskinnerc avatar Sep 24 '18 19:09 rskinnerc

@haverchuck, do you know if there is a parameter which we could be set via Cloudformation to support this use case?

kaustavghosh06 avatar Sep 25 '18 05:09 kaustavghosh06

👍

bijanmmarkes avatar Dec 04 '18 05:12 bijanmmarkes

This is a pretty critical one in my mind.

https://github.com/aws-amplify/amplify-cli/issues/814

bradennapier avatar Feb 28 '19 02:02 bradennapier

Duplicate issue. Tracking this as a part of #814

kaustavghosh06 avatar Mar 14 '19 05:03 kaustavghosh06

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 for those types of questions.

github-actions[bot] avatar May 27 '21 13:05 github-actions[bot]