Skip to main content

admin_logout

Function admin_logout 

Source
pub fn admin_logout(cookies: &CookieJar<'_>, pool: &State<DbPool>) -> Redirect
Expand description

Signs out (POST /admin/logout): revokes the server-side session (so the id is dead even if the cookie lingers), clears the cookie, and returns to the sign-in page.