From 30e9bcc492ffa81dabfd316a295ff4d20daaec3b Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 13 Jun 2026 09:38:00 +0200 Subject: Report missing authentication Previously, HTTP error 403 was returned if an unauthenticated user attempted to access a file or directory inside /user/. However, this error message confusing because, most often, it was caused by legitimate users with missing or expired HTTP cookies. While the usual workaround was to access /index.html and authenticate, this was too confusing to some users. --- page.h | 1 + 1 file changed, 1 insertion(+) (limited to 'page.h') diff --git a/page.h b/page.h index 8b1e9a0..6ab28ea 100644 --- a/page.h +++ b/page.h @@ -40,6 +40,7 @@ struct page_rm int page_login(struct http_response *r); int page_style(struct http_response *r, const char *path); int page_failed_login(struct http_response *r); +int page_missing_login(struct http_response *r); int page_forbidden(struct http_response *r); int page_bad_request(struct http_response *r); int page_not_found(struct http_response *r); -- cgit v1.2.3