leetcode-cli icon indicating copy to clipboard operation
leetcode-cli copied to clipboard

Can't login!

Open 3000ye opened this issue 3 years ago • 12 comments

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

  • leetcode-cli version:

| | | | | |
| | ___ | | ___ ___ __| | ___ | |/ _ / _ \ __|/ __|/ _ \ / ` |/ _
| | _/ / | (| (
) | (
| | __/ |
|_|_|_|_|_/ _,_|___| CLI v2.6.2

[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

3000ye avatar Jun 21 '22 04:06 3000ye

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

skapeyi avatar Jun 25 '22 11:06 skapeyi

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

  • leetcode-cli 2.6.2-5245886
  • node.js v16.15.1
  • WSL2 Ubuntu 20.04.4 LTS (kernel 5.10.102.1-microsoft-standard-WSL2)

reendael avatar Jul 03 '22 12:07 reendael

same problem

edte avatar Jul 08 '22 12:07 edte

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

edte avatar Jul 08 '22 12:07 edte

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

but my account is in US website, not Chinese.

3000ye avatar Jul 09 '22 06:07 3000ye

same issue

itsdhruvarora avatar Jul 24 '22 09:07 itsdhruvarora

#194

edte avatar Jul 26 '22 03:07 edte

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.

ghost avatar Dec 04 '22 04:12 ghost

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

Sean-Shmulevich avatar Dec 24 '22 23:12 Sean-Shmulevich

me too

DahxLi avatar Jan 16 '23 21:01 DahxLi

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.

mbledkowski avatar Feb 28 '23 20:02 mbledkowski

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!

Felix-hans avatar May 13 '23 17:05 Felix-hans