mirror of
https://github.com/xiaoxinpro/nginx-proxy-manager-zh.git
synced 2025-01-22 21:08:13 -05:00
Fix change password function
This commit is contained in:
parent
3301800f42
commit
e0773b1c06
@ -14,9 +14,10 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type setAuthModel struct {
|
type setAuthModel struct {
|
||||||
Type string
|
// The json tags are required, as the change password form decodes into this object
|
||||||
Secret string
|
Type string `json:"type"`
|
||||||
CurrentSecret string
|
Secret string `json:"secret"`
|
||||||
|
CurrentSecret string `json:"current_secret"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetAuth sets a auth method. This can be used for "me" and `2` for example
|
// SetAuth sets a auth method. This can be used for "me" and `2` for example
|
||||||
|
Loading…
Reference in New Issue
Block a user