feat: account deletion request and active-user check

This commit is contained in:
2026-10-26 02:11:44 +01:00
parent 83bb5d9847
commit 0b5d18c4ee
27 changed files with 577 additions and 151 deletions

View File

@@ -246,7 +246,8 @@ async fn admin_api_user_rejects_an_unknown_user() {
)
.await
.unwrap();
assert_eq!(resp.status(), StatusCode::NOT_FOUND);
// An account the store does not hold is inactive, so it is unauthenticated.
assert_eq!(resp.status(), StatusCode::UNAUTHORIZED);
}
#[tokio::test]
@@ -337,7 +338,9 @@ async fn admin_user_rejects_an_unknown_user() {
)
.await
.unwrap();
assert_eq!(resp.status(), StatusCode::UNAUTHORIZED);
// An account the store does not hold is inactive: back to the login page.
assert_eq!(resp.status(), StatusCode::SEE_OTHER);
assert_eq!(resp.headers().get("location").unwrap(), "/login");
}
#[tokio::test]