Angular AWS Cognito:while user启用了;adminSetUserPassword";然后将自动触发发送给用户的带有密码的电子邮件

Angular AWS Cognito:while user启用了;adminSetUserPassword";然后将自动触发发送给用户的带有密码的电子邮件,angular,amazon-web-services,amazon-cognito,Angular,Amazon Web Services,Amazon Cognito,使用“cognitoIdentityServiceProvider.adminSetUserPassword”启用用户时 使用该密码的用户将自动触发电子邮件 下面的代码正在启用用户,但不会向用户发送电子邮件 有人能建议如何实施此方案吗 let params: AWS.CognitoIdentityServiceProvider.AdminSetUserPasswordRequest = { UserPoolId: this.cognitoUtil.getUserPool().getU

使用“cognitoIdentityServiceProvider.adminSetUserPassword”启用用户时 使用该密码的用户将自动触发电子邮件

下面的代码正在启用用户,但不会向用户发送电子邮件

有人能建议如何实施此方案吗

  let params: AWS.CognitoIdentityServiceProvider.AdminSetUserPasswordRequest = {
    UserPoolId: this.cognitoUtil.getUserPool().getUserPoolId(),
    Username: User.Email,
    Password: User.Password,
    Permanent: false
  };

  let cognitoIdentityServiceProvider = new AWS.CognitoIdentityServiceProvider();

  return new Promise((resolve, reject) => {
    cognitoIdentityServiceProvider.adminSetUserPassword(params, (err: AWS.AWSError, res: AWS.CognitoIdentityServiceProvider.AdminSetUserPasswordResponse) => {
      if (res)
        return resolve(res);
      return reject(err);
    });
  });