forked from pothtonswer/discordmuffin
Fix Login crash by returning immediately
This commit is contained in:
parent
1b3817c7e1
commit
054115bc89
1 changed files with 3 additions and 0 deletions
|
@ -108,6 +108,9 @@ func (s *Session) Login(email string, password string) (token string, err error)
|
||||||
}{email, password}
|
}{email, password}
|
||||||
|
|
||||||
response, err := s.Request("POST", LOGIN, data)
|
response, err := s.Request("POST", LOGIN, data)
|
||||||
|
if err != nil {
|
||||||
|
return response, err
|
||||||
|
}
|
||||||
|
|
||||||
temp := struct {
|
temp := struct {
|
||||||
Token string `json:"token"`
|
Token string `json:"token"`
|
||||||
|
|
Loading…
Reference in a new issue