fix testsg

This commit is contained in:
philipp 2023-07-25 13:33:12 +02:00
parent e5f22ae070
commit 9a3636f05f

View File

@ -113,7 +113,7 @@ async fn updatepw(
} }
#[get("/logout")] #[get("/logout")]
fn logout(cookies: &CookieJar<'_>, _user: &User) -> Flash<Redirect> { fn logout(cookies: &CookieJar<'_>, _user: User) -> Flash<Redirect> {
cookies.remove_private(Cookie::named("loggedin_user")); cookies.remove_private(Cookie::named("loggedin_user"));
Flash::success(Redirect::to("/auth"), "Logout erfolgreich") Flash::success(Redirect::to("/auth"), "Logout erfolgreich")