-
Hello, I'm using the SDK to create accounts on Cognito for my client's website, and I confirm the emails directly through the adminConfirmSignUp method. So I don't need the confirmation email / SMS. I just noticed that some confirmation emails were being sent and that I reached daily limit, which is now causing account creation to fail. I tried changing from CognitoIdentityProviderClient::signUp to CognitoIdentityProviderClient::adminCreateUser and forcing the email_verified attribute to true in the method's $input argument
I'm not finding anything that prevents Cognito from trying (and failing) to send the confirmation email.
I tried sending an empty array for DesiredDeliveryMediums but it failed
Can anyone enlighten me ? Thanks ! Note: AWS documentation doesn't give me more: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
FYI I found the way: Add the following entryto adminCreateUser $input array And then update the password with adminSetUserPassword with Permanent => true attribute in the $input array) |
Beta Was this translation helpful? Give feedback.
FYI I found the way:
Add the following entryto adminCreateUser $input array
'MessageAction' => 'SUPPRESS'
And then update the password with adminSetUserPassword with Permanent => true attribute in the $input array)