mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-12-22 19:53:49 +01:00
fixed validation for fabfire
This commit is contained in:
parent
0b997547ed
commit
353ae8a6ff
@ -90,7 +90,7 @@ impl SessionCallback for Callback {
|
||||
let authcid = context
|
||||
.get_ref::<AuthId>()
|
||||
.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)
|
||||
}
|
||||
}
|
||||
|
@ -157,7 +157,8 @@ impl AuthenticationSystem for Authentication {
|
||||
union_field: "challenge",
|
||||
};
|
||||
}
|
||||
Err(_) => {
|
||||
Err(e) => {
|
||||
tracing::error!(error = %e., "authentication failed");
|
||||
self.state = State::Aborted;
|
||||
self.build_error(builder);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user