Nov 14, 2020
0
Level 4
Authentication Forgot Password Submit amplify-js
What is the expected response? Auth.forgotPassword() is sending the email with the code. I can update my password and login with my new password, but there's no response. Is this a bug?
methods: {
// Send confirmation code to user's email
validate () {
//this.dialog = true
Auth.forgotPassword(this.username)
.then(data => this.dialog = true)
.catch(err => console.log(err));
},
resetPassword(){
// Collect confirmation code and new password, then
console.log(this.username)
console.log(this.code)
console.log(this.new_password)
Auth.forgotPasswordSubmit(this.username, this.code, this.new_password)
.then(data => console.log(data))
.catch(err => console.log(err));
}
},
my response
2019-03-20 07:57:24.005 { CodeDeliveryDetails: { AttributeName: 'email', DeliveryMedium: 'EMAIL', Destination: 't***@m***.com' } } 2019-03-20 07:57:52.905 forgot password submit: undefined 2019-03-20 07:57:52.907 undefined
Please or to participate in this conversation.