fixed validation for fabfire

This commit is contained in:
Kai Jan Kriegel 2023-02-13 18:44:08 +01:00
parent 0b997547ed
commit 353ae8a6ff
2 changed files with 3 additions and 2 deletions

View File

@ -90,7 +90,7 @@ impl SessionCallback for Callback {
let authcid = context let authcid = context
.get_ref::<AuthId>() .get_ref::<AuthId>()
.ok_or(ValidationError::MissingRequiredProperty)?; .ok_or(ValidationError::MissingRequiredProperty)?;
if let Some(user) = self.users.get_user(authcid) { if let Some(user) = self.users.get_user_by_token(authcid) {
validate.finalize::<V>(user) validate.finalize::<V>(user)
} }
} }

View File

@ -157,7 +157,8 @@ impl AuthenticationSystem for Authentication {
union_field: "challenge", union_field: "challenge",
}; };
} }
Err(_) => { Err(e) => {
tracing::error!(error = %e., "authentication failed");
self.state = State::Aborted; self.state = State::Aborted;
self.build_error(builder); self.build_error(builder);