Beispiel #1
0
 private void CheckPassword()
 {
     if (EnteredPassword != null && _passwordHandler.IsCorrectPassword(EnteredPassword, User.Password))
     {
         _userRepository.SetUserLoginTime(User);
         this.OpenNewWindowCommand.Execute("main");
         _mediator.Send(new UserLogedInMessage {
             UserId = User.Id
         });
         this.CloseWindowCommand.Execute(GetWindow("LoginWindow"));
     }
     else
     {
         InfoLabel = "Wrong password!";
     }
 }