Skip to main content

identify

Function identify 

Source
pub fn identify(db: &Db, headers: &HeaderMap) -> Result<Identity, Error>
Expand description

Check the request’s credential and say who it is.

A session expires after crate::model::Settings::session_idle_minutes without a request, and crate::model::Settings::session_max_hours after sign-in however busy it is. Both are checked on every request, so nothing has to sweep. Touching last_seen costs a metadata write, so it is re-stamped at most once a minute.