mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-18 06:24:24 +01:00
LNURL updates (#4501)
This commit is contained in:
@@ -63,12 +63,12 @@ namespace BTCPayServer
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!global::LNURL.LNAuthRequest.VerifyChallenge(sig, pubKey, k1))
|
||||
if (!LNURL.LNAuthRequest.VerifyChallenge(sig, pubKey, k1))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
var newCredential = new Fido2Credential() {Name = name, ApplicationUserId = userId, Type = Fido2Credential.CredentialType.LNURLAuth, Blob = pubkeyBytes};
|
||||
var newCredential = new Fido2Credential {Name = name, ApplicationUserId = userId, Type = Fido2Credential.CredentialType.LNURLAuth, Blob = pubkeyBytes};
|
||||
|
||||
await dbContext.Fido2Credentials.AddAsync(newCredential);
|
||||
await dbContext.SaveChangesAsync();
|
||||
@@ -130,7 +130,7 @@ namespace BTCPayServer
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (!global::LNURL.LNAuthRequest.VerifyChallenge(sig, pubKey, k1))
|
||||
if (!LNURL.LNAuthRequest.VerifyChallenge(sig, pubKey, k1))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user