问题描述
我也面临同样的问题。在更新电子邮件地址时。 Cognito 正在将代码发送到该新电子邮件地址。我按照上面的解决方案,但仍然发送了验证码。
if (event.triggerSource === 'CustomMessage_UpdateUserAttribute')
{
const params = {
UserAttributes: [
{
Name: 'email_verified',Value: 'true',},],UserPoolId: event.userPoolId,Username: event.userName,};
var cognitoIdServiceProvider = new AWS.CognitoIdentityServiceProvider();
cognitoIdServiceProvider.adminUpdateUserAttributes(params,function(err,data) {
if (err) context.done(err,event); // an error occurred
else context.done(null,event); // successful response
});
}
else
{
context.done(null,event);
}
};
谁能帮我解决这个问题??提前致谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)