private void BtnSubmit_Click(object sender, RoutedEventArgs e)
 {
     if (PBKDF2.ValidatePassword(PswdAdmin.Password, AppState.AdminPassword))
     {
         _admin = true;
         ClosePage();
     }
     else
     {
         AppState.DisplayNotification("Invalid login.", "Time Clock");
         PswdAdmin.Focus();
     }
 }
Пример #2
0
 public AdminLoginPage()
 {
     InitializeComponent();
     PswdAdmin.Focus();
 }