From 9e6a542289aecbdfd4804c4380e55d76e3dc8891 Mon Sep 17 00:00:00 2001 From: Lars Date: Thu, 19 Mar 2026 10:13:07 +0100 Subject: [PATCH] fix: change password endpoint method from POST to PUT to match frontend --- backend/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/main.py b/backend/main.py index 5d8ff77..11bb183 100644 --- a/backend/main.py +++ b/backend/main.py @@ -1102,7 +1102,7 @@ def auth_status(): """Health check endpoint.""" return {"status": "ok", "service": "mitai-jinkendo", "version": "v9b"} -@app.post("/api/auth/pin") +@app.put("/api/auth/pin") def change_pin(req: dict, session: dict=Depends(require_auth)): """Change PIN/password for current user.""" pid = session['profile_id']