aboutsummaryrefslogtreecommitdiffstats
path: root/web/web_test.go
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-16 08:49:08 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-16 08:49:08 -0800
commit1f36ec29c83bf5826c90986e071705888c83036c (patch)
treec2d0100ff3571fd1ed86ff7c184701e8bb48a069 /web/web_test.go
parentaee026b141532c11f8eb315ca77cc23f663901ae (diff)
downloadneko-1f36ec29c83bf5826c90986e071705888c83036c.tar.gz
neko-1f36ec29c83bf5826c90986e071705888c83036c.tar.bz2
neko-1f36ec29c83bf5826c90986e071705888c83036c.zip
Fix v3 build process and CSRF login/logout exclusions
- Update Makefile to correctly build and copy frontend-vanilla (v3) assets - Fix frontend-vanilla/vite.config.ts to build to its own dist directory - Normalize CSRF check path and exclude /api/logout to fix v3 session clearing - Include latest built assets for v3
Diffstat (limited to 'web/web_test.go')
-rw-r--r--web/web_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/web_test.go b/web/web_test.go
index a208155..a40e073 100644
--- a/web/web_test.go
+++ b/web/web_test.go
@@ -130,8 +130,8 @@ func TestLoginHandlerPostSuccess(t *testing.T) {
req.Form = map[string][]string{"password": {"testpass"}}
rr := httptest.NewRecorder()
loginHandler(rr, req)
- if rr.Code != http.StatusTemporaryRedirect {
- t.Errorf("Expected %d, got %d", http.StatusTemporaryRedirect, rr.Code)
+ if rr.Code != http.StatusSeeOther {
+ t.Errorf("Expected %d, got %d", http.StatusSeeOther, rr.Code)
}
}