This commit is contained in:
emersion 2017-08-22 10:16:20 +02:00
parent 653a8a0dc0
commit d964a951a0
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
4 changed files with 50 additions and 50 deletions

View File

@ -116,8 +116,6 @@ func (c *Client) Auth(username, password, twoFactorCode string, info *AuthInfo)
}
}
log.Printf("%#v\n", info)
proofs, err := srp([]byte(password), info)
if err != nil {
return nil, err

View File

@ -9,7 +9,7 @@ import (
"strconv"
)
const Version = 2
const Version = 3
const headerAPIVersion = "X-Pm-Apiversion"
@ -39,11 +39,13 @@ func (err apiError) Error() string {
// Client is a ProtonMail API client.
type Client struct {
HTTPClient *http.Client
RootURL string
AppVersion string
ClientID string
ClientSecret string
HTTPClient *http.Client
}
func (c *Client) newRequest(method, path string, body io.Reader) (*http.Request, error) {