From 8ebac28ccfc4d942765aa09e13bedc0bb676204d Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Sat, 16 Nov 2019 15:07:02 +0900 Subject: [PATCH] Fix tests --- BTCPayServer/Controllers/ServerController.cs | 2 +- BTCPayServer/Models/ServerViewModels/LndSeedBackupViewModel.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BTCPayServer/Controllers/ServerController.cs b/BTCPayServer/Controllers/ServerController.cs index 3c00db12a..bf5a2ecc7 100644 --- a/BTCPayServer/Controllers/ServerController.cs +++ b/BTCPayServer/Controllers/ServerController.cs @@ -711,7 +711,7 @@ namespace BTCPayServer.Controllers if (await model.RemoveSeedAndWrite(service.ConnectionString.CookieFilePath)) { - TempData[WellKnownTempData.ErrorMessage] = $"Seed successfully removed"; + TempData[WellKnownTempData.SuccessMessage] = $"Seed successfully removed"; return RedirectToAction(nameof(Service), new { serviceName, cryptoCode }); } else diff --git a/BTCPayServer/Models/ServerViewModels/LndSeedBackupViewModel.cs b/BTCPayServer/Models/ServerViewModels/LndSeedBackupViewModel.cs index 91d1ccdd4..6a8e9c694 100644 --- a/BTCPayServer/Models/ServerViewModels/LndSeedBackupViewModel.cs +++ b/BTCPayServer/Models/ServerViewModels/LndSeedBackupViewModel.cs @@ -48,7 +48,7 @@ namespace BTCPayServer.Models.ServerViewModels var unlockFileContents = File.ReadAllText(lndSeedFilePath); var unlockFile = JsonConvert.DeserializeObject(unlockFileContents); - if (!String.IsNullOrEmpty(unlockFile.wallet_password)) + if (unlockFile.wallet_password != null) { return new LndSeedBackupViewModel {