do not use validate
MODIFY
WalletWasabi.Fluent/ViewModels/Login/LoginViewModel.cs
WalletWasabi.Fluent/ViewModels/Login/LoginViewModel.cs
@@ -6,22 +6,19 @@ using WalletWasabi.Blockchain.Keys;
using WalletWasabi.Fluent.ViewModels.Navigation;
using WalletWasabi.Fluent.ViewModels.Wallets;
using WalletWasabi.Gui;
-using WalletWasabi.Gui.Helpers;
-using WalletWasabi.Gui.Validation;
using WalletWasabi.Logging;
-using WalletWasabi.Models;
using WalletWasabi.Userfacing;
using WalletWasabi.Wallets;
namespace WalletWasabi.Fluent.ViewModels.Login
{
- public class LoginViewModel : RoutableViewModel
+ public partial class LoginViewModel : RoutableViewModel
{
+ [AutoNotify] private string _password;
+
public LoginViewModel(WalletViewModelBase wallet)
{
- Password = "";
-
- this.ValidateProperty(x => x.Password, ValidatePassword);
+ _password = "";
NextCommand = ReactiveCommand.Create(() =>
{
@@ -30,8 +27,6 @@ namespace WalletWasabi.Fluent.ViewModels.Login
KeyManager keyManager = walletManager.GetWalletByName(wallet.WalletName).KeyManager;
-
-
if (PasswordHelper.TryPassword(keyManager, Password, out var compatibilityPasswordUsed))
{
if (compatibilityPasswordUsed is { })
@@ -47,13 +42,6 @@ namespace WalletWasabi.Fluent.ViewModels.Login
});
}
- private void ValidatePassword(IValidationErrors errors)
- {
- throw new NotImplementedException();
- }
-
- public string Password { get; set; }
-
public async Task LoadWalletAsync(KeyManager keyManager, WalletManager walletManager)
{
try

do not use validate