mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
Fix tests
This commit is contained in:
parent
4e5001d7ef
commit
8ebac28ccf
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user