This commit is contained in:
macbook-maxwell 2024-10-08 20:40:41 +08:00
parent 757918798c
commit 7b2333e3a8

View File

@ -213,7 +213,7 @@ func fetchTokenFromAPI(username, password string) (string, error) {
url := cfg.APITokenUrl
reqBody := map[string]string{
"username": username,
"name": username,
"password": password,
}
reqBodyJson, _ := json.Marshal(reqBody)