feat: support username-password in config update (#447)

This commit is contained in:
Jeffrey Smith II
2022-10-14 07:56:39 -04:00
committed by GitHub
parent 188c393034
commit 6142b7a4a3
4 changed files with 139 additions and 43 deletions

View File

@ -124,6 +124,11 @@ func (svc localConfigsSVC) UpdateConfig(up Config) (Config, error) {
}
if up.Token != "" {
p0.Token = up.Token
p0.Cookie = ""
}
if up.Cookie != "" {
p0.Token = ""
p0.Cookie = up.Cookie
}
if up.Host != "" {
p0.Host = up.Host