Skip to content
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

add leetcode.signinByCookie but simple change #487

Merged
merged 6 commits into from
Dec 5, 2019
Merged

add leetcode.signinByCookie but simple change #487

merged 6 commits into from
Dec 5, 2019

Conversation

yihong0618
Copy link
Contributor

@yihong0618 yihong0618 commented Dec 3, 2019

This is very simple change maybe for short-term solution for #478
Sorry for the first time write ts.
Please help me review~
@jdneo
Thanks a lot.

@jdneo
Copy link
Member

jdneo commented Dec 3, 2019

Is it possible to leverage the cookie extension:

to bypass the reCAPTCHA?


Update: Forget it, it still introduces some requirements to use. Not ideal enough

@yihong0618
Copy link
Contributor Author

Yes, but I think this way is not so simple, I will try it tomorrow.

@jdneo
Copy link
Member

jdneo commented Dec 3, 2019

@yihong0618 I just took a look about the document. The cookie plugins need more requirements and they are different for different platforms. So I think it's not an ideal solution. Just forget it.

@yihong0618
Copy link
Contributor Author

yihong0618 commented Dec 3, 2019

@jdneo me either. And this solution was for one-time session at that time.
I also think we read the cookie is worse than user paste it, because users will feel unsafe(not only the leetcode session but also others).

@yihong0618
Copy link
Contributor Author

@jdneo
cookie.chrome work.
But I think its not a good idea, it is no essential difference from the paste cookie method

Copy link
Member

@jdneo jdneo left a comment

Choose a reason for hiding this comment

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

Thank you for your effort @yihong0618.

I just have one concern about the command name. Maybe call it Sign in (by cookie) would be more easy to understand?

README.md Outdated
- **LeetCode: Sign in**
- **LeetCode: Cookie in**
Copy link
Member

Choose a reason for hiding this comment

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

How about renaming it to Sign in (by cookie)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Of course, should I also change name in leetcode.cookieIn command ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jdneo
Have changed it~

@yihong0618 yihong0618 changed the title add leetcode.cookieIn but simple change Dec 4, 2019
package.json Outdated
"onView:leetCodeExplorer"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "leetcode.signinByCookie",
"title": "Sign In By Cookie",
Copy link
Member

Choose a reason for hiding this comment

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

nit: By should be lower case since it's a preposition

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I will change it right now

@jdneo
Copy link
Member

jdneo commented Dec 5, 2019

Hi @yihong0618, almost there. Just a typo.

@yihong0618
Copy link
Contributor Author

Hi I fixed the typo, is that right?

@jdneo
Copy link
Member

jdneo commented Dec 5, 2019

LGTM. Thank you @yihong0618 for your contribution! Well done!

@jdneo jdneo merged commit 4979a0f into LeetCode-OpenSource:master Dec 5, 2019
@jdneo
Copy link
Member

jdneo commented Dec 5, 2019

Will release this fix before the end of this week

@jdneo jdneo added this to the 0.15.8 milestone Dec 5, 2019
@yihong0618
Copy link
Contributor Author

Thank you~

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