Amplify Auth - Password forget when not confirmed #7253
Labels
Auth
Related to Auth components/category
to-be-reproduced
Used in order for Amplify to reproduce said issue
Describe the bug
When I sing-up a new user into my Congito userpool and not confirm him and then try to reset the password before confirming I am not getting an error, that the user is not confirmed. Rather I get a message that the code for the password reset was delivered, which is not the case.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Either I should get back an error like: "User needs to be confirmed first." or that the code is delivered and auto-confirms the account together with the new password.
Code Snippet$phonenumber$ )
Web:
Auth.forgotPassword(
.then((data) => {
....
})
.catch(err => ....)
Log from iOS
Optional(AWSMobileClient.SignUpResult(codeDeliveryDetails: Optional(AWSMobileClient.UserCodeDeliveryDetails(deliveryMedium: AWSMobileClient.UserCodeDeliveryMedium.sms, destination: Optional("+********XXXX"), attributeName: Optional("phone_number"))), signUpConfirmationState: AWSMobileClient.SignUpConfirmationState.unconfirmed))
What is Configured?
const cognito = {
REGION: "eu-central-1",
USER_POOL_ID: "XXX",
APP_CLIENT_ID: "XXX",
IDENTITY_POOL_ID: "XXX"
}
Amplify.configure({
Auth: {
mandatorySignIn: true,
region: cognito.REGION,
userPoolId: cognito.USER_POOL_ID,
userPoolWebClientId: cognito.APP_CLIENT_ID,
identityPoolId: cognito.IDENTITY_POOL_ID,
authenticationFlowType: 'USER_PASSWORD_AUTH'
}
})
Further info
I implemented user migration on the userpool.
I am using SMS to confirm the phonenumber of the user.
Smartphone (please complete the following information):
I have the problem on iOS & web, a collegue also got the problem on android
The text was updated successfully, but these errors were encountered: