【发布时间】:2019-06-18 04:48:43
【问题描述】:
我使用 aws-amplify 构建了一个允许 Cognito 用户登录的应用程序。但是,Auth.forgotPassword 似乎将 SMS 发送到移动设备而不是 EMAIL。如何更改发送电子邮件的行为?
相关代码如下:
Auth.forgotPassword(this.state.username)
.then(data => this.setState({instruction: 'An email has been sent to your email with a temporary password.', usernameError: false, passwordError: false}))
.catch(err => this.setState({instruction: err.message, usernameError: false, passwordError: false}));
【问题讨论】:
标签: reactjs amazon-web-services aws-amplify