Ejemplo n.º 1
0
        protected void btnSend_Click(object sender, EventArgs e)
        {
            string password = Usr.generatePassword();

            Usr.passwordReset(txtEmail.Text, password);
            if (!Mailer.sendPasswordRecoveryLetter(txtEmail.Text, password))
            {
                lblError.Text    = "Sending email with a new password is failed";
                lblError.Visible = true;
            }
            ;
        }