Skip to content

Commit

Permalink
Remove unused param - CSRFToken
Browse files Browse the repository at this point in the history
  • Loading branch information
meian committed Jul 23, 2024
1 parent b08a8d4 commit 70006fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions crawler/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (

"github.com/meian/atgo/crawler/requests"
"github.com/meian/atgo/crawler/responses"
"github.com/meian/atgo/csrf"
"github.com/meian/atgo/http"
"github.com/meian/atgo/logs"
"github.com/meian/atgo/url"
Expand Down Expand Up @@ -53,7 +52,6 @@ func (c *Login) Do(ctx context.Context, req *requests.Login) (*responses.Login,
return nil, err
}
return &responses.Login{
LoggedIn: c.crawler.LoggedIn(ctx, doc),
CSRFToken: csrf.FromCookies(ctx, resp.Cookies()),
LoggedIn: c.crawler.LoggedIn(ctx, doc),
}, nil
}
3 changes: 1 addition & 2 deletions crawler/responses/login.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package responses

type Login struct {
LoggedIn bool
CSRFToken string
LoggedIn bool
}

0 comments on commit 70006fc

Please sign in to comment.