feat(Seafile): add token login (#6324 close #5302)

This commit is contained in:
tukipona
2024-04-10 21:50:30 +08:00
committed by GitHub
parent cd5a8a011d
commit c3c5181847
2 changed files with 7 additions and 2 deletions

View File

@ -14,6 +14,10 @@ import (
)
func (d *Seafile) getToken() error {
if d.Token != "" {
d.authorization = fmt.Sprintf("Token %s", d.Token)
return nil
}
var authResp AuthTokenResp
res, err := base.RestyClient.R().
SetResult(&authResp).