Skip to content

Cookie login bug #242

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

Merged
merged 55 commits into from
Sep 21, 2023
Merged

Cookie login bug #242

merged 55 commits into from
Sep 21, 2023

Conversation

sealye09
Copy link
Contributor

修复: 使用 cookie 登录后,重启 vscode 需要重新登录。

尝试修复获取不到用户名的情况
修复 测试用例块 过滤注释符号的方式
修正提交结果页面耗时显示
新增文件名配置格式
使用${tag}作为文件夹名称不生效
hideScore 配置变化时刷新题目列表
题解显示 katex 数学公式
增加打开 app 清空题目缓存配置(默认关闭)
BWC96 & WC328 & WC329 数据
请尝试配置区域调试参数
更改错误答案上色默认选项
ccagml and others added 17 commits March 2, 2023 10:35
替换中文题解中的 textit
增加周赛场次信息展示
修复某些情况下调用 allcase 报错,如 1017 题
修复某些情况下, allcase 没解析成功,如 1040 题
增加 计时器 配置是否开启
获取题目错误,则不生成文件
随机一题可以指定 tag 分类
146题非Solution类时cpp调试报错
workspaceFolder 可以尝试从环境变量中读取数据
生成区域调试参数后尝试直接发起调试
filepath增加参数cn_name
增加重试上次测试用例按钮 retest
Description 无法识别某些题目
@sealye09 sealye09 closed this Sep 20, 2023
@sealye09 sealye09 deleted the cookie-login-bug branch September 20, 2023 08:56
@sealye09 sealye09 restored the cookie-login-bug branch September 20, 2023 09:01
@sealye09 sealye09 reopened this Sep 20, 2023
@ccagml
Copy link
Owner

ccagml commented Sep 20, 2023

按你改的,是因为userApi.ts里面的user_name取错了?
StatusBarService.ts应该不用改吧?

@sealye09
Copy link
Contributor Author

sealye09 commented Sep 20, 2023 via email

@ccagml
Copy link
Owner

ccagml commented Sep 21, 2023

感觉userApi.ts那里name改成login不太对
我试了使用cookie方式登录成功后, 在存放用户数据的文件里
windows系统应该: C:\Users\用户名.lcpr\leetcode\user.json
linux系统应该: ~/.lcpr/leetcode/user.json
的文件里有name的内容
那个取值name应该是对的

@sealye09
Copy link
Contributor Author

感觉userApi.ts那里name改成login不太对 我试了使用cookie方式登录成功后, 在存放用户数据的文件里 windows系统应该: C:\Users\用户名.lcpr\leetcode\user.json linux系统应该: ~/.lcpr/leetcode/user.json 的文件里有name的内容 那个取值name应该是对的

图片

图片

图片

是这个文件没错。
我试了两个号,但是拿到的字段不太一样。

@ccagml
Copy link
Owner

ccagml commented Sep 21, 2023

你那个ye账号开头的user.json文件里面没有name字段?以前有人说他的账号也会没有name字段,我也觉得奇怪,看起来真会这样

@ccagml
Copy link
Owner

ccagml commented Sep 21, 2023

以前我在其他地方容错,取不到name就取login, 看起来,userApi.ts你改的这里也需要这样容错

@sealye09
Copy link
Contributor Author

sealye09 commented Sep 21, 2023

以前我在其他地方容错,取不到name就取login, 看起来,userApi.ts你改的这里也需要这样容错

还有,我这么一试,发现有name字段的账号是可以用leetcode登录的(另外一个不行),有可能也是类似原因。

edit: 突然都可以了。之前一直登不上去来着 :)

@ccagml ccagml merged commit daeb35e into ccagml:main Sep 21, 2023
@ccagml ccagml linked an issue Sep 21, 2023 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

每次打开 VS Code 都需要重新登陆
2 participants