Ejemplo n.º 1
0
        private async void button1_Click(object sender, EventArgs e)
        {
            try
            {
                CognitoHelper helper = new CognitoHelper();
                await helper.ResetPassword(txtusername.Text);

                MessageBox.Show("Password reset request submitted. Please check the code on phone");
                lblcode.Enabled        = true;
                txtcode.Enabled        = true;
                lblnewpassword.Enabled = true;
                txtnewpassword.Enabled = true;
                btnupdatepass.Enabled  = true;
            }
            catch (Exception exp)
            {
                MessageBox.Show(exp.Message);
            }
        }