我使用aws-amplify构建了一个应用程序,允许使用Cognito用户登录。然而,Auth.forgotPassword似乎正在向移动设备发送短信,而不是电子邮件。如何更改行为,使其发送电子邮件? 相关代码如下: Auth.forgotPassword(this.state.username)
.then(data => this.setState({instruction: 'An email has been sent to your email with a temporary password.', usernameError: false, passw