Skip to content

Commit e0773b1

Browse files
committed
Fix change password function
1 parent 3301800 commit e0773b1

File tree

1 file changed

+4
-3
lines changed
  • backend/internal/api/handler

1 file changed

+4
-3
lines changed

backend/internal/api/handler/auth.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ import (
1414
)
1515

1616
type setAuthModel struct {
17-
Type string
18-
Secret string
19-
CurrentSecret string
17+
// The json tags are required, as the change password form decodes into this object
18+
Type string `json:"type"`
19+
Secret string `json:"secret"`
20+
CurrentSecret string `json:"current_secret"`
2021
}
2122

2223
// SetAuth sets a auth method. This can be used for "me" and `2` for example

0 commit comments

Comments
 (0)