oc-auth
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user