update auth cookie settings

This commit is contained in:
Wim Brand
2020-02-05 11:35:31 +01:00
parent 2fba11269a
commit 650c7ede6c
4 changed files with 21 additions and 16 deletions

View File

@@ -58,7 +58,7 @@ func (p *PixelAPI) UserLogin(username, password string, saveKey bool) (resp *Log
return nil, err
}
if saveKey {
p.apiKey = resp.APIKey
p.APIKey = resp.APIKey
}
return resp, nil
}