From e0773b1c06a41011f2e1afb189b4c19a05f94548 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Mon, 29 May 2023 15:26:28 +1000 Subject: [PATCH] Fix change password function --- backend/internal/api/handler/auth.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/internal/api/handler/auth.go b/backend/internal/api/handler/auth.go index 23df31e..6f7811e 100644 --- a/backend/internal/api/handler/auth.go +++ b/backend/internal/api/handler/auth.go @@ -14,9 +14,10 @@ import ( ) type setAuthModel struct { - Type string - Secret string - CurrentSecret string + // The json tags are required, as the change password form decodes into this object + Type string `json:"type"` + Secret string `json:"secret"` + CurrentSecret string `json:"current_secret"` } // SetAuth sets a auth method. This can be used for "me" and `2` for example