From d15d58b32cbe50c646863420361a95f0849d2894 Mon Sep 17 00:00:00 2001 From: Jon Seager Date: Wed, 4 Feb 2026 17:14:56 +0000 Subject: [PATCH] fix(auth): redirect login and logout to homepage instead of timeline --- src/application/routes/auth.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/application/routes/auth.rs b/src/application/routes/auth.rs index ca75d9a..91ced30 100644 --- a/src/application/routes/auth.rs +++ b/src/application/routes/auth.rs @@ -36,7 +36,7 @@ pub(crate) async fn login_page( ) -> Result { // Check if already authenticated if is_authenticated(&state, &cookies).await { - return Ok(Redirect::to("/timeline").into_response()); + return Ok(Redirect::to("/").into_response()); } let template = LoginTemplate { @@ -103,7 +103,7 @@ pub(crate) async fn login_submit( cookies.add(cookie); - Ok(Redirect::to("/timeline").into_response()) + Ok(Redirect::to("/").into_response()) } #[tracing::instrument(skip(state, cookies))] @@ -124,7 +124,7 @@ pub(crate) async fn logout(State(state): State, cookies: Cookies) -> R } cookies.remove(Cookie::from(SESSION_COOKIE_NAME)); - Redirect::to("/timeline") + Redirect::to("/") } fn show_login_error(message: &str) -> Result {