mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 14:34:23 +01:00
Fix tests
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user