Fix tests

This commit is contained in:
nicolas.dorier
2019-11-16 15:07:02 +09:00
parent 4e5001d7ef
commit 8ebac28ccf
2 changed files with 2 additions and 2 deletions

View File

@@ -711,7 +711,7 @@ namespace BTCPayServer.Controllers
if (await model.RemoveSeedAndWrite(service.ConnectionString.CookieFilePath)) 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 }); return RedirectToAction(nameof(Service), new { serviceName, cryptoCode });
} }
else else

View File

@@ -48,7 +48,7 @@ namespace BTCPayServer.Models.ServerViewModels
var unlockFileContents = File.ReadAllText(lndSeedFilePath); var unlockFileContents = File.ReadAllText(lndSeedFilePath);
var unlockFile = JsonConvert.DeserializeObject<LndSeedFile>(unlockFileContents); var unlockFile = JsonConvert.DeserializeObject<LndSeedFile>(unlockFileContents);
if (!String.IsNullOrEmpty(unlockFile.wallet_password)) if (unlockFile.wallet_password != null)
{ {
return new LndSeedBackupViewModel return new LndSeedBackupViewModel
{ {