This commit is contained in:
mr
2026-02-10 09:39:13 +01:00
parent eb6dee0c4d
commit af0a8cb117
5 changed files with 34 additions and 12 deletions

View File

@@ -196,6 +196,7 @@ func (a HydraConnector) Login(clientID string, username string, cookies ...*http
json.Unmarshal(b, &m)
pp := oclib.NewRequest(oclib.LibDataEnum(oclib.PEER), "", "", []string{}, nil).Search(nil, strconv.Itoa(peer.SELF.EnumIndex()), false)
if len(pp.Data) == 0 || pp.Code >= 300 || pp.Err != "" {
fmt.Println(pp.Data, pp.Code, pp.Err)
return nil, errors.New("peer not found")
}
now := time.Now().UTC()