mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-17 22:14:26 +01:00
Support LNURL Auth
This commit is contained in:
@@ -180,5 +180,19 @@ namespace BTCPayServer.Controllers
|
||||
model.SharedKey = FormatKey(unformattedKey);
|
||||
model.AuthenticatorUri = GenerateQrCodeUri(user.Email, unformattedKey);
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public IActionResult CreateCredential(string name, Fido2Credential.CredentialType type)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case Fido2Credential.CredentialType.FIDO2:
|
||||
return RedirectToAction("Create", "UIFido2", new { name });
|
||||
case Fido2Credential.CredentialType.LNURLAuth:
|
||||
return RedirectToAction("Create", "LNURLAuth", new { name });
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException(nameof(type), type, null);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user