登录失败
🐛 Bug Report
采用GitHub登录时失败
To Reproduce
- 选择
sign in to Leetcode - 选择GitHub登录
- 根据提示输入账号密码
- 无弹窗等提示,查询输出后得到下文中的错误提示
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
+1
@jingx15 @zhe-he
我解释下这块的登陆问题:
- leetcode-cn 目前只支持直接登陆(第三方登陆是不好用的)
- leetcode.com 目前只支持 GitHub 登陆,我刚才测了下,至少 GitHub 没问题
- 如果你绑定了 2FA 目前可能不支持邮箱的,我是手机没问题
邮箱密码无法登陆 提示invalid password
1.View:show LeetCode 2.left side.press the International icon,then change to Chinese 3. login with name and password 4. Success.
邮箱密码无法登陆 提示invalid password
是的,总是invalid password,但我的用户名密码都没问题
我之前也登陆失败。刚刚我重制了密码。绑定了邮箱。用邮箱和密码登录成功了。是在leetcode-cn节点。
~~同样问题,刚重置了密码还是不行,美国和国内节点都试过了,请问有什么解决办法吗?~~ 已经解决,用了cookie登录方法issues #478 ,通过点击all拿到cookie然后复制全部cookie的value即可
same issue while log in us-endpoint.
Any suggesttions?