summaryrefslogtreecommitdiff
path: root/server/src/auth.rs
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2025-07-17 23:42:55 +0200
committerJoel Klinghed <the_jk@spawned.biz>2025-07-17 23:44:11 +0200
commitbef3da2a567e3804e12355d9c3d5c09439dbe2ea (patch)
treeab7974c941bd31994da46150234976b33c2f61b5 /server/src/auth.rs
parent145be2b3c92e254904d4040850e3c1e9b6a66f32 (diff)
Humble beginnings
Redirect to login if not logged in, on login session cookie is set and projects or reviews are listed.
Diffstat (limited to 'server/src/auth.rs')
-rw-r--r--server/src/auth.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/auth.rs b/server/src/auth.rs
index edd794c..530b2ef 100644
--- a/server/src/auth.rs
+++ b/server/src/auth.rs
@@ -225,7 +225,7 @@ async fn login(
);
let cookie = Cookie::build((SESSION_COOKIE, json::to_string(&session).unwrap()))
- .path("/api")
+ .path("/")
.max_age(max_age)
.http_only(true)
.build();