mirror of
https://github.com/kanidm/kanidm.git
synced 2025-02-23 20:47:01 +01:00
improve webauthn errors (#1179)
This commit is contained in:
parent
92d79489fc
commit
565fca5891
|
@ -1372,7 +1372,7 @@ impl<'a> IdmServerCredUpdateTransaction<'a> {
|
||||||
session.account.existing_credential_id_list(),
|
session.account.existing_credential_id_list(),
|
||||||
)
|
)
|
||||||
.map_err(|e| {
|
.map_err(|e| {
|
||||||
error!(?e, "Unable to start passkey registration");
|
error!(eclass=?e, emsg=%e, "Unable to start passkey registration");
|
||||||
OperationError::Webauthn
|
OperationError::Webauthn
|
||||||
})?;
|
})?;
|
||||||
|
|
||||||
|
@ -1401,7 +1401,7 @@ impl<'a> IdmServerCredUpdateTransaction<'a> {
|
||||||
.webauthn
|
.webauthn
|
||||||
.finish_passkey_registration(reg, pk_reg)
|
.finish_passkey_registration(reg, pk_reg)
|
||||||
.map_err(|e| {
|
.map_err(|e| {
|
||||||
error!(?e, "Unable to start passkey registration");
|
error!(eclass=?e, emsg=%e, "Unable to start passkey registration");
|
||||||
OperationError::Webauthn
|
OperationError::Webauthn
|
||||||
})?;
|
})?;
|
||||||
let pk_id = Uuid::new_v4();
|
let pk_id = Uuid::new_v4();
|
||||||
|
|
Loading…
Reference in a new issue