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

登录失败

Open The-D66 opened this issue 4 years ago • 9 comments

🐛 Bug Report

采用GitHub登录时失败

To Reproduce

  1. 选择sign in to Leetcode
  2. 选择GitHub登录
  3. 根据提示输入账号密码
  4. 无弹窗等提示,查询输出后得到下文中的错误提示

Extension Output

login: (node:11632) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
pass: c:\Users\xxx\.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:589
    const authenticityToken = body.match(/name="authenticity_token" value="(.*?)"/);
                                   ^

TypeError: Cannot read property 'match' of undefined
    at Request._callback (c:\Users\the-d\.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\vsc-leetcode-cli\lib\plugins\leetcode.js:589:36)
    at self.callback (c:\Users\the-d\.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\request\request.js:185:22)
    at Request.emit (node:events:378:20)
    at Request.onRequestError (c:\Users\the-d\.vscode\extensions\leetcode.vscode-leetcode-0.17.0\node_modules\request\request.js:881:8)
    at ClientRequest.emit (node:events:378:20)
    at TLSSocket.socketErrorListener (node:_http_client:462:9)
    at TLSSocket.emit (node:events:378:20)
    at emitErrorNT (node:internal/streams/destroy:188:8)
    at emitErrorCloseNT (node:internal/streams/destroy:153:3)
    at processTicksAndRejections (node:internal/process/task_queues:81:21)

Your Environment

  • os: win10 20H2
  • extension settings: 无
  • nodejs version: v12.18.3
  • vscode version:1.53.2
  • extension version:0.17.0

The-D66 avatar Mar 01 '21 01:03 The-D66

+1

zhe-he avatar Mar 05 '21 02:03 zhe-he

@jingx15 @zhe-he

我解释下这块的登陆问题:

  1. leetcode-cn 目前只支持直接登陆(第三方登陆是不好用的)
  2. leetcode.com 目前只支持 GitHub 登陆,我刚才测了下,至少 GitHub 没问题
  3. 如果你绑定了 2FA 目前可能不支持邮箱的,我是手机没问题

yihong0618 avatar Mar 05 '21 02:03 yihong0618

邮箱密码无法登陆 提示invalid password

zhangyanrui avatar Mar 12 '21 09:03 zhangyanrui

1.View:show LeetCode 2.left side.press the International icon,then change to Chinese 3. login with name and password 4. Success.

zhangyanrui avatar Mar 12 '21 09:03 zhangyanrui

邮箱密码无法登陆 提示invalid password

是的,总是invalid password,但我的用户名密码都没问题

medmin avatar Jun 20 '21 21:06 medmin

我之前也登陆失败。刚刚我重制了密码。绑定了邮箱。用邮箱和密码登录成功了。是在leetcode-cn节点。

0xMario27 avatar Jun 21 '21 03:06 0xMario27

~~同样问题,刚重置了密码还是不行,美国和国内节点都试过了,请问有什么解决办法吗?~~ 已经解决,用了cookie登录方法issues #478 ,通过点击all拿到cookie然后复制全部cookie的value即可

chengengliu avatar Jul 08 '21 03:07 chengengliu

same issue while log in us-endpoint.

1ywan avatar Jul 14 '21 13:07 1ywan

Any suggesttions?

TinyZzh avatar Nov 24 '21 02:11 TinyZzh