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();
     }
 }
Пример #2
0
 //edit password
 private async void OnEditPasswordClicked(object sender, EventArgs e)
 {
     await ChangePasswordPopup.Show();
 }