Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: premium questions are blocked#950

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
willie5588912 wants to merge1 commit intoLeetCode-OpenSource:master
base:master
Choose a base branch
Loading
fromwillie5588912:fix-premium-question-not-shown

Conversation

willie5588912
Copy link

I'm usingleetcode.com and found that if I use a premium account and login via cookie, the "locked question" (namely, only for premium user) still jump to premium subscription web page while clicking it, not showing the question in vscode.

I guess, this may result from the failure of normal login, since it seems that there are some snippets setting the premium status, namelyGlobalState._userStatus.isPremium duringhandleUriSignIn().

With cookie login, the initialization stage only goes throughgetLoginStatus().
Therefore, I add a function namedtryParseUserInfo() to pares both username and the premium status of the user, then useglobalState.setUserStatus() to setisPremium.

I've checked with both premium and non-premium accounts, both works.
Please help verify, thanks!

Copy link

@enzoenricoenzoenrico left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

looks good to me, great job

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@enzoenricoenzoenricoenzoenrico approved these changes

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@willie5588912@enzoenrico

[8]ページ先頭

©2009-2025 Movatter.jp