On which framework/platform are you having an issue?
React
Which UI component?
Authenticator
How is your app built?
Create React App
What browsers are you seeing the problem on?
No response
Which region are you seeing the problem in?
No response
Please describe your bug.
After a user (without email nor phone user attribute) signed in, the user verification component is shown. Clicking on the Verify button always results in an error since there is nothing to verify.
What's the expected behaviour?
Currently the emailNotVerified and phoneNotVerified are used to decide if verification is required.
Verification should not be required if both email and phone attributes are absent. In this case there is nothing to verify and the verification will fail showing a validation error.
Help us reproduce the bug!
Cognito setup:
user created by admin (signup is disabled)
user can optionally set his email for password recovery
user can chose between username and email for signing in
After a user has signed in (using the amplify sign in component), he is requested to verify his account. Since there is no email nor phone, there is no radio button shown to select what you want to verify and verification always fails.
Note: the user verification component has another bug; when the user has an email set, the user verification component shows a radio button with the email, but the user can click the verify button without selecting the radio button. This always results in an ugly error to be shown. The verify button should be disabled if nothing is selected.
Code Snippet
No response
Console log output
No response
Additional information and screenshots
After signing in with email attribute not set:
Error when clicking Verify:
Error when clicking Verify when email is set, but not selected:
Before creating a new issue, please confirm:
On which framework/platform are you having an issue?
React
Which UI component?
Authenticator
How is your app built?
Create React App
What browsers are you seeing the problem on?
No response
Which region are you seeing the problem in?
No response
Please describe your bug.
After a user (without email nor phone user attribute) signed in, the user verification component is shown. Clicking on the Verify button always results in an error since there is nothing to verify.
What's the expected behaviour?
Currently the emailNotVerified and phoneNotVerified are used to decide if verification is required. Verification should not be required if both email and phone attributes are absent. In this case there is nothing to verify and the verification will fail showing a validation error.
Help us reproduce the bug!
Cognito setup:
After a user has signed in (using the amplify sign in component), he is requested to verify his account. Since there is no email nor phone, there is no radio button shown to select what you want to verify and verification always fails.
Note: the user verification component has another bug; when the user has an email set, the user verification component shows a radio button with the email, but the user can click the verify button without selecting the radio button. This always results in an ugly error to be shown. The verify button should be disabled if nothing is selected.
Code Snippet
No response
Console log output
No response
Additional information and screenshots
After signing in with email attribute not set:
Error when clicking Verify:
Error when clicking Verify when email is set, but not selected: