1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-08-31 19:37:00 +02:00

[actix-identity] Fix visit deadline (#263)

This commit is contained in:
Luca Palmieri
2022-07-19 01:31:31 +01:00
committed by GitHub
parent 1cc37c371e
commit 1089faaf93
4 changed files with 41 additions and 5 deletions

View File

@@ -162,6 +162,14 @@ fn enforce_policies(req: &ServiceRequest, configuration: &Configuration) {
) {
identity.logout();
return;
} else {
if let Err(err) = identity.set_last_visited_at() {
tracing::warn!(
error.display = %err,
error.debug = ?err,
"Failed to set the last visited timestamp on `Identity` for an incoming request."
);
}
}
}
}