Skip to content

Commit

Permalink
fix(login): do not relogin when already logged in (#19)
Browse files Browse the repository at this point in the history
Co-authored-by: aping <[email protected]>
  • Loading branch information
iaping and APING2014 authored Dec 15, 2023
1 parent ce17f8d commit 8eaf1ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (c *Client) LoginCtx(ctx context.Context) error {
// place cookies in jar for future requests
if cookies := resp.Cookies(); len(cookies) > 0 {
c.setCookies(cookies)
} else {
} else if bodyString != "Ok." {
return errors.New("bad credentials")
}

Expand Down

0 comments on commit 8eaf1ac

Please sign in to comment.