Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Cannot find csrf' after Codeforces update #131

Open
purplesyringa opened this issue Apr 6, 2021 · 4 comments
Open

'Cannot find csrf' after Codeforces update #131

purplesyringa opened this issue Apr 6, 2021 · 4 comments

Comments

@purplesyringa
Copy link

cf-tool/client/login.go

Lines 48 to 51 in 4aff868

if len(tmp) < 2 {
return "", errors.New("Cannot find csrf")
}
return string(tmp[1]), nil

There's just a single data-csrf='...' field on Codeforces now. What's the point in using the second match, not the first one?

@infalmo
Copy link

infalmo commented Apr 6, 2021

Try https://github.com/cp-tools/cpt
It's still beta, but its much cooler.

@sainad2222
Copy link

sainad2222 commented Apr 6, 2021

The development of the tool looks inactive.

UPD: I fixed the issue and created fork. Thanks to @imachug
Here's the link

@askeySnip
Copy link

so, is there any solution? I still get ‘Cannot find csrf' error using sainad2222's repo.

@SHAHNUR00
Copy link

https://github.com/woshiluo/cf-tool/releases/tag/v1.0.1
GO to that link and download the required file. It woks without any issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants