skygragon / leetcode-cli

A cli tool to enjoy leetcode!
MIT License
3.65k stars 458 forks source link

[ERROR] invalid password? #153

Open jiahao-shen opened 5 years ago

jiahao-shen commented 5 years ago

i install the nodejs through homebrew on my macOS. And the node version is 11.5.0, the npm version is 6.4.1, the leetcode-cli version is 2.6.1. I can login on the web page successfully, but when i use command line "leetcode user l", it shows "[ERROR] invalid password?", i have changed my password several times but it also failed.

1nv1n commented 5 years ago

Hey @jiahao-shen, I ran into the same issue. Have you tried using your e-mail address & password to log into leetcode-cli? When I got "[ERROR] invalid password?" on using my username-password to log in, I tried using my e-mail address instead & it worked.

jiahao-shen commented 5 years ago

It doesn't work for me. It also shows "[ERROR] invalid password?". I login leetcode using my github account, maybe this is the problem?

1nv1n commented 5 years ago

Maybe. I guess you've already looked at the comments here: https://github.com/skygragon/leetcode-cli/issues/109?

hardboydu commented 5 years ago

remove leetcode-cn and lintcode plugin

suzixin commented 4 years ago

hello,anybody here? I met this problem again,reinstall && reset password didn't help.Any other solution?

livepo commented 4 years ago

I met this too. Can Somebody fix it ?

ghost commented 4 years ago

Having the same problem here; tried similar solutions like reinstall, restart, reset password, and log in with email and username.

00light00 commented 4 years ago

try sign in by cookie

suzixin commented 4 years ago

How to sign in by cookie,show us the step,thx!

Andrey-Pavlov commented 4 years ago

Doesn't work with login and pass. Is it working with cookie?

abhijeeg commented 4 years ago

I think there is no point trying it anymore. Can't login after trying out everything here.

akashkaushik33 commented 4 years ago

I am encountering the same problem. Not able to log in with email/username and password

akashkaushik33 commented 4 years ago

just found a solution and it worked for me. Steps: 1) Login into leetcode on chrome 2) install cookie.chrome pluging with command => leetcode plugin -i cookie.chrome 3) install libsecret tools => linux (sudo apt-get install libsecret-tools) mac ( brew install libsecret ) 4) now try to log in

Ref link: https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/cookie.chrome.md

h4n0 commented 4 years ago

just found a solution and it worked for me. Steps:

  1. Login into leetcode on chrome
  2. install cookie.chrome pluging with command => leetcode plugin -i cookie.chrome
  3. install libsecret tools => linux (sudo apt-get install libsecret-tools) mac ( brew install libsecret )
  4. now try to log in

Ref link: https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/cookie.chrome.md

it works for me. Thanks. one additional point, if you get stuck on step2, you may need to run sudo with the command, coz it will call your npm which could be only accessible by sudo user also for me i installed sqlite3 wtih npm before i can login.

yedamao commented 4 years ago

just found a solution and it worked for me. Steps:

  1. Login into leetcode on chrome
  2. install cookie.chrome pluging with command => leetcode plugin -i cookie.chrome
  3. install libsecret tools => linux (sudo apt-get install libsecret-tools) mac ( brew install libsecret )
  4. now try to log in

Ref link: https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/cookie.chrome.md

It works. Thank you

sochooligan commented 4 years ago

If your cookie.chrome is not active, you can: "leetcode plugin --help", then you'll see "-e, --enable Enable plugin", use "leetcode plugin -e cookie.chrome" active you cookie.chrome. finally, use "leetcode user -l" to login.

khlj commented 3 years ago

I’m using ipad with ssh server set up, is there a way to copy paste my chrome cookie on a laptop to my ssh server for it to work?

ryqdev commented 2 years ago

just found a solution and it worked for me. Steps:

  1. Login into leetcode on chrome
  2. install cookie.chrome pluging with command => leetcode plugin -i cookie.chrome
  3. install libsecret tools => linux (sudo apt-get install libsecret-tools) mac ( brew install libsecret )
  4. now try to log in

Ref link: https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/cookie.chrome.md

This works for me! Thanks a lot!

sming commented 2 years ago

The above advice is not working for me :( I'm on a Mac M1. Anyone got any ideas?

IsaacSoe commented 2 years ago

just found a solution and it worked for me. Steps:

  1. Login into leetcode on chrome
  2. install cookie.chrome pluging with command => leetcode plugin -i cookie.chrome
  3. install libsecret tools => linux (sudo apt-get install libsecret-tools) mac ( brew install libsecret )
  4. now try to log in

Ref link: https://github.com/skygragon/leetcode-cli-plugins/blob/master/docs/cookie.chrome.md

I use edge but not chrome, who can help me :(