diff --git a/src/pages/auth/login.rs b/src/pages/auth/login.rs index 988f017..8b60423 100644 --- a/src/pages/auth/login.rs +++ b/src/pages/auth/login.rs @@ -93,7 +93,7 @@ pub async fn login_submit( .finish()) } else { Ok(HttpResponse::Found() - .insert_header((http::header::LOCATION, PAGES.home)) + .insert_header((http::header::LOCATION, PAGES.dash.home)) .finish()) } } diff --git a/src/pages/auth/test.rs b/src/pages/auth/test.rs index e03621d..ca1796f 100644 --- a/src/pages/auth/test.rs +++ b/src/pages/auth/test.rs @@ -71,7 +71,7 @@ async fn auth_works(ctx: ArcCtx) { .await; assert_eq!(resp.status(), StatusCode::FOUND); let headers = resp.headers(); - assert_eq!(headers.get(header::LOCATION).unwrap(), PAGES.home); + assert_eq!(headers.get(header::LOCATION).unwrap(), PAGES.dash.home); let cookies = get_cookie!(resp); // redirect after signin