changes operation touch behaviour

This commit is contained in:
Fabian Kaczmarczyck
2020-11-13 06:51:53 +01:00
parent 748e149b71
commit 51681e4910

View File

@@ -345,7 +345,7 @@ where
if let Some(auth_param) = &pin_uv_auth_param { if let Some(auth_param) = &pin_uv_auth_param {
// This case was added in FIDO 2.1. // This case was added in FIDO 2.1.
if auth_param.is_empty() { if auth_param.is_empty() {
let _ = (self.check_user_presence)(cid); (self.check_user_presence)(cid)?;
if self.persistent_store.pin_hash()?.is_none() { if self.persistent_store.pin_hash()?.is_none() {
return Err(Ctap2StatusCode::CTAP2_ERR_PIN_NOT_SET); return Err(Ctap2StatusCode::CTAP2_ERR_PIN_NOT_SET);
} else { } else {
@@ -549,7 +549,7 @@ where
if let Some(auth_param) = &pin_uv_auth_param { if let Some(auth_param) = &pin_uv_auth_param {
// This case was added in FIDO 2.1. // This case was added in FIDO 2.1.
if auth_param.is_empty() { if auth_param.is_empty() {
let _ = (self.check_user_presence)(cid); (self.check_user_presence)(cid)?;
if self.persistent_store.pin_hash()?.is_none() { if self.persistent_store.pin_hash()?.is_none() {
return Err(Ctap2StatusCode::CTAP2_ERR_PIN_NOT_SET); return Err(Ctap2StatusCode::CTAP2_ERR_PIN_NOT_SET);
} else { } else {