Fix Login crash by returning immediately

This commit is contained in:
Seth Moore 2016-01-10 10:43:47 -05:00
parent 1b3817c7e1
commit 054115bc89

View file

@ -108,6 +108,9 @@ func (s *Session) Login(email string, password string) (token string, err error)
}{email, password}
response, err := s.Request("POST", LOGIN, data)
if err != nil {
return response, err
}
temp := struct {
Token string `json:"token"`