LNURL updates (#4501)

This commit is contained in:
d11n
2023-01-05 14:41:18 +01:00
committed by GitHub
parent 099d65032a
commit eb90fab640
5 changed files with 17 additions and 21 deletions

View File

@@ -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;
}