From 9a3636f05f8be74eaa5384cc8184ca04212419d6 Mon Sep 17 00:00:00 2001 From: philipp Date: Tue, 25 Jul 2023 13:33:12 +0200 Subject: [PATCH] fix testsg --- src/tera/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tera/auth.rs b/src/tera/auth.rs index a367c62..0476940 100644 --- a/src/tera/auth.rs +++ b/src/tera/auth.rs @@ -113,7 +113,7 @@ async fn updatepw( } #[get("/logout")] -fn logout(cookies: &CookieJar<'_>, _user: &User) -> Flash { +fn logout(cookies: &CookieJar<'_>, _user: User) -> Flash { cookies.remove_private(Cookie::named("loggedin_user")); Flash::success(Redirect::to("/auth"), "Logout erfolgreich")