equal
deleted
inserted
replaced
12 CreatedAt int `json:"created_at"` |
12 CreatedAt int `json:"created_at"` |
13 Scope string `json:"scope"` |
13 Scope string `json:"scope"` |
14 TokenType string `json:"token_type"` |
14 TokenType string `json:"token_type"` |
15 } |
15 } |
16 |
16 |
17 func (g *Client) Login(username, password string) error { |
17 func (g *Client) LoginBasic(username, password string) error { |
18 if username == "" { |
18 if username == "" { |
19 return fmt.Errorf("missing username") |
19 return fmt.Errorf("missing username") |
20 } |
20 } |
21 if password == "" { |
21 if password == "" { |
22 return fmt.Errorf("missing password") |
22 return fmt.Errorf("missing password") |