Skip to content
This repository has been archived by the owner on Jun 1, 2021. It is now read-only.

Commit

Permalink
removed user/key from better security
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Oct 11, 2014
1 parent 20b47de commit 921a1ca
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ type Client struct {

type ClientCredentials struct {
Token string
Key string
User string
Debug bool
Expire int
ExpireFrom *time.Time
Expand All @@ -83,11 +81,6 @@ func NewFromCache(filename string) (API, error) {
return nil, err
}
c := newClient(new(http.Client))
if blank(cache.User) || blank(cache.Key) {
return nil, ErrorBadCredentials
}
c.user = cache.User
c.key = cache.Key
c.token = cache.Token
c.tokenExpire = cache.Expire
c.debug = cache.Debug
Expand All @@ -100,8 +93,6 @@ func NewFromCache(filename string) (API, error) {
}

func (c *Client) Credentials() (cache ClientCredentials) {
cache.User = c.user
cache.Key = c.key
cache.URL = c.storageURL.String()
cache.Expire = c.tokenExpire
cache.ExpireFrom = c.expireFrom
Expand Down

0 comments on commit 921a1ca

Please sign in to comment.