Exemplo n.º 1
0
        private async void OnCloseChangePassword(object sender, EventArgs e)
        {
            await ChangePasswordPopup.Hide();

            entryPassword.Text    = null;
            entryNewPassword.Text = null;
            entryConfirm.Text     = null;
        }
 protected void ChangePasswordOKButton_Click(object sender, EventArgs e)
 {
     if (Page.IsValid && EnforcePasswordPolicy())
     {
         string password = NewPassword.Text.Trim();
         _User.SetPassword(password, ForceExpiration.Checked);
         ChangePasswordPopup.Hide();
     }
     else
     {
         ChangePasswordPopup.Show();
     }
 }
 protected void ChangePasswordCancelButton_Click(object sender, EventArgs e)
 {
     NewPassword.Text        = string.Empty;
     ConfirmNewPassword.Text = string.Empty;
     ChangePasswordPopup.Hide();
 }