We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3301800 commit e0773b1Copy full SHA for e0773b1
backend/internal/api/handler/auth.go
@@ -14,9 +14,10 @@ import (
14
)
15
16
type setAuthModel struct {
17
- Type string
18
- Secret string
19
- CurrentSecret string
+ // The json tags are required, as the change password form decodes into this object
+ Type string `json:"type"`
+ Secret string `json:"secret"`
20
+ CurrentSecret string `json:"current_secret"`
21
}
22
23
// SetAuth sets a auth method. This can be used for "me" and `2` for example
0 commit comments