diff --git a/backend/internal/api/handler/auth.go b/backend/internal/api/handler/auth.go index 23df31e2..6f7811e3 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