skygragon / leetcode-cli

A cli tool to enjoy leetcode!
MIT License
3.64k stars 457 forks source link

Can't login! #233

Open 3000ye opened 2 years ago

3000ye commented 2 years ago

Problem Summary

when I enter :leetcode user -l

I ' m sure my account is correct, but I can 't log in

then I try: leetcode user -c

and it show: [ERROR] You are not login yet?

So, what should I do?

How to reproduce

Environment

[Environment] Node v12.22.12 OS linux 5.13.0-52-generic Cache /home/ye/.lc/leetcode.cn/cache Config /home/ye/.lc/config.json

[Configuration] autologin {"enable":false,"retry":2} code {"editor":"vim","lang":"cpp"} file {"show":"${fid}.${slug}","submission":"${fid}.${slug}.${sid}.${ac}"} color {"enable":true,"theme":"default"} icon {"theme":""} network {"concurrency":10,"delay":1} app "leetcode.cn"

[Themes] Colors blue,dark,default,molokai,orange,pink,solarized,solarized.light Icons ascii,default,win7

[Plugins] cache default retry default leetcode.cn 2018.11.25 leetcode default

skapeyi commented 2 years ago

Been struggling to login too. I just get back and I am sure the password is fine. Screenshot 2022-06-25 at 14 24 03

reendael commented 2 years ago

Been struggling to login too. I just get back and I am sure the password is fine. Screenshot 2022-06-25 at 14 24 03

Same problem including the 'padLevels' circular dependency warning on

edte commented 2 years ago

same problem

edte commented 2 years ago

will,i fixed this problem by change leetcode.com to leetcode.cn at config files

3000ye commented 2 years ago

will,i fixed this problem by change leetcode.com to leetcode.cn at config files

but my account is in US website, not Chinese.

itsdhruvarora commented 2 years ago

same issue

edte commented 2 years ago

194

ghost commented 1 year ago

Still looks like this doesn't work. At first i thought it was because I had special characters in my password as there is also an issue about that. But changing my password to just characters and numbers still results in not being able to log in with leetcode-cli -l attempting many times to ensure i am typing the correct account details.

Sean-Shmulevich commented 1 year ago

Yep me too tried using a VPN but it didn't help the issue

DahxLi commented 1 year ago

me too

mbledkowski commented 1 year ago

Hi, developer of this extension has not been very active on GitHub since 2019. I created repository where I keep maintaining similar extension - https://github.com/mbledkowski/neuleetcode.vim. Please submit your issues there.

Felix-hans commented 1 year ago

The easiest way I found to overcome the problem was to do cookie login via "leetcode user -c". Here is a manual:

https://github.com/LeetCode-OpenSource/vscode-leetcode/issues/478#issuecomment-564757098

Hope that helps!