Fix change password function

This commit is contained in:
Jamie Curnow 2023-05-29 15:26:28 +10:00
parent 3301800f42
commit e0773b1c06
No known key found for this signature in database
GPG Key ID: FFBB624C43388E9E

View File

@ -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