core/webauthn: Claim that PIN is set even when it's not, because login.live.com shows an error, but doesn't instruct the user to set a PIN.

pull/360/head
Andrew Kozlik 5 years ago
parent 5e99058832
commit cf6949332f

@ -1599,7 +1599,7 @@ def cbor_get_info(req: Cmd) -> Cmd:
_GETINFO_RESP_OPTIONS: { _GETINFO_RESP_OPTIONS: {
"rk": _ALLOW_RESIDENT_CREDENTIALS, "rk": _ALLOW_RESIDENT_CREDENTIALS,
"up": True, "up": True,
"uv": config.has_pin(), "uv": True,
}, },
} }
return Cmd(req.cid, _CMD_CBOR, bytes([_ERR_NONE]) + cbor.encode(response_data)) return Cmd(req.cid, _CMD_CBOR, bytes([_ERR_NONE]) + cbor.encode(response_data))

Loading…
Cancel
Save