mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
LNURL updates (#4501)
This commit is contained in:
@@ -65,7 +65,7 @@ namespace BTCPayServer
|
||||
TempData.SetStatusMessageModel(new StatusMessageModel
|
||||
{
|
||||
Severity = StatusMessageModel.StatusSeverity.Error,
|
||||
Html = "The lightning node could not be registered."
|
||||
Html = "The Lightning node could not be registered."
|
||||
});
|
||||
|
||||
return RedirectToList();
|
||||
@@ -103,10 +103,10 @@ namespace BTCPayServer
|
||||
if (await _lnurlAuthService.CompleteCreation(name, userId,
|
||||
ECDSASignature.FromDER(Encoders.Hex.DecodeData(sig)), new PubKey(key)))
|
||||
{
|
||||
return Ok(new LNUrlStatusResponse() { Status = "OK" });
|
||||
return Ok(new LNUrlStatusResponse { Status = "OK" });
|
||||
}
|
||||
|
||||
return BadRequest(new LNUrlStatusResponse()
|
||||
return BadRequest(new LNUrlStatusResponse
|
||||
{
|
||||
Reason = "The challenge could not be verified", Status = "ERROR"
|
||||
});
|
||||
@@ -127,10 +127,10 @@ namespace BTCPayServer
|
||||
if (await _lnurlAuthService.CompleteLogin(userId,
|
||||
ECDSASignature.FromDER(Encoders.Hex.DecodeData(sig)), new PubKey(key)))
|
||||
{
|
||||
return Ok(new LNUrlStatusResponse() { Status = "OK" });
|
||||
return Ok(new LNUrlStatusResponse { Status = "OK" });
|
||||
}
|
||||
|
||||
return BadRequest(new LNUrlStatusResponse()
|
||||
return BadRequest(new LNUrlStatusResponse
|
||||
{
|
||||
Reason = "The challenge could not be verified", Status = "ERROR"
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user