Skip to content

登录失败 #685

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
The-D66 opened this issue Mar 1, 2021 · 9 comments
Open

登录失败 #685

The-D66 opened this issue Mar 1, 2021 · 9 comments

Comments

@The-D66
Copy link

The-D66 commented Mar 1, 2021

🐛 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
@zhe-he
Copy link

zhe-he commented Mar 5, 2021

+1

@yihong0618
Copy link
Contributor

@jingx15 @zhe-he

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

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

@zhangyanrui
Copy link

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

@zhangyanrui
Copy link

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

@medmin
Copy link

medmin commented Jun 20, 2021

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

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

@0xMario27
Copy link

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

@chengengliu
Copy link

chengengliu commented Jul 8, 2021

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

@1ywan
Copy link

1ywan commented Jul 14, 2021

same issue while log in us-endpoint.

@TinyZzh
Copy link

TinyZzh commented Nov 24, 2021

Any suggesttions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants