Skip to main content

mark_session_reauthenticated

Function mark_session_reauthenticated 

Source
pub async fn mark_session_reauthenticated(
    pool: &PgPool,
    user_id: Uuid,
    token_hash: &str,
) -> AppResult<bool>
Expand description

Marks the web session (by the hash of its token) of user_id as signed in again just now. False when the session is not the user’s (or gone).