mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
Fix tests
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace BTCPayServer.Models.ServerViewModels
|
||||
var unlockFileContents = File.ReadAllText(lndSeedFilePath);
|
||||
var unlockFile = JsonConvert.DeserializeObject<LndSeedFile>(unlockFileContents);
|
||||
|
||||
if (!String.IsNullOrEmpty(unlockFile.wallet_password))
|
||||
if (unlockFile.wallet_password != null)
|
||||
{
|
||||
return new LndSeedBackupViewModel
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user