Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tarang19's avatar

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

0 likes
0 replies

Please or to participate in this conversation.