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

[ERROR] invalid password?

Open jiahao-shen opened this issue 6 years ago • 20 comments

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.

jiahao-shen avatar Jan 16 '19 17:01 jiahao-shen

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.

1nv1n avatar Feb 26 '19 21:02 1nv1n

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

jiahao-shen avatar Feb 28 '19 04:02 jiahao-shen

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

1nv1n avatar Mar 01 '19 23:03 1nv1n

remove leetcode-cn and lintcode plugin

hardboydu avatar Mar 18 '19 09:03 hardboydu

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

suzixin avatar Dec 03 '19 00:12 suzixin

I met this too. Can Somebody fix it ?

livepo avatar Dec 05 '19 08:12 livepo

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

ghost avatar Dec 09 '19 03:12 ghost

try sign in by cookie

00light00 avatar Dec 16 '19 07:12 00light00

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

suzixin avatar Dec 21 '19 00:12 suzixin

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

Andrey-Pavlov avatar Feb 13 '20 09:02 Andrey-Pavlov

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

abhijeeg avatar Feb 23 '20 22:02 abhijeeg

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

akashkaushik33 avatar Feb 25 '20 10:02 akashkaushik33

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

akashkaushik33 avatar Feb 25 '20 11:02 akashkaushik33

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.

h4n0 avatar Apr 05 '20 15:04 h4n0

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

yedamao avatar Apr 28 '20 02:04 yedamao

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.

sochooligan avatar Sep 23 '20 11:09 sochooligan

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?

khlj avatar Jan 09 '21 09:01 khlj

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!

ryqdev avatar Dec 30 '21 05:12 ryqdev

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

sming avatar Apr 13 '22 15:04 sming

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 :(

IsaacSoe avatar May 09 '22 13:05 IsaacSoe