You've already forked lubo_comment_query
免输入登录功能提交
This commit is contained in:
@ -32,9 +32,13 @@ use Webauthn\TokenBinding\IgnoreTokenBindingHandler;
|
||||
|
||||
class UserWebAuthnController extends BaseController
|
||||
{
|
||||
private $TIMEOUT = 45000;
|
||||
private $attestationStatementSupportManager = null;
|
||||
|
||||
public function webauthn_login(Request $request)
|
||||
{
|
||||
return view("user.webauthn.login");
|
||||
}
|
||||
|
||||
public function register_options(Request $request): PublicKeyCredentialCreationOptions
|
||||
{
|
||||
$userEntity = new PublicKeyCredentialUserEntity(
|
||||
@ -58,7 +62,6 @@ class UserWebAuthnController extends BaseController
|
||||
PublicKeyCredentialRequestOptions::USER_VERIFICATION_REQUIREMENT_REQUIRED
|
||||
);
|
||||
$publicKeyCredentialRequestOptions->allowCredentials([]);
|
||||
$publicKeyCredentialRequestOptions->setTimeout($this->TIMEOUT);
|
||||
return $publicKeyCredentialRequestOptions;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user