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

Password reset workaround #15

Merged
merged 20 commits into from
Mar 18, 2023
Merged

Password reset workaround #15

merged 20 commits into from
Mar 18, 2023

Conversation

LuXeZs
Copy link
Collaborator

@LuXeZs LuXeZs commented Feb 27, 2023

This is my first time using python so if something ain't right let me know

src/main.py Outdated Show resolved Hide resolved
src/main.py Outdated Show resolved Hide resolved
@Derpitron
Copy link
Owner

This looks neat! Give me a few hours, I'll review and test the code. If all goes well, I will merge it in.

src/main.py Outdated Show resolved Hide resolved
@Trxnce
Copy link

Trxnce commented Feb 27, 2023

"[0227/140201.358:INFO:CONSOLE(152)] "[AnalyticsTrackingStore] Track: Request has been terminated
Possible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.", source: https://discord.com/assets/cd14ce5b3de79d42c84f.js (152)" When executing for a password reset.

@Trxnce
Copy link

Trxnce commented Feb 27, 2023

Another block that appears when executing: (this is before it starts using codes)

[0227/140238.990:INFO:CONSOLE(0)] "Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'.", source: (0)
[0227/140239.834:INFO:CONSOLE(152)] "WebRTC is not supported on Safari 7.x", source: https://discord.com/assets/cd14ce5b3de79d42c84f.js (152)
[0227/140239.915:INFO:CONSOLE(152)] "%c[default]
font-weight: bold;
color: purple;
[BUILD INFO] Release Channel: stable, Build Number: 177051, Version Hash: becd31ed09181bdf74fdf8f8f10e6eab74fc654e", source: https://discord.com/assets/cd14ce5b3de79d42c84f.js (152)
[0227/140239.917:INFO:CONSOLE(152)] "AppCrashedFatalReport: getLastCrash not supported.", source: https://discord.com/assets/cd14ce5b3de79d42c84f.js (152)
[0227/140240.082:INFO:CONSOLE(103)] "Uncaught (in promise) Error: Cannot find module './notosans-400-normalitalic.woff2'", source: https://discord.com/assets/aa6b38612af7f416ffe2.js (103)
[0227/140240.189:INFO:CONSOLE(152)] "Deprecation warning: value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.
Arguments:
[0] _isAMomentObject: true, _isUTC: false, _useUTC: false, _l: undefined, _i: 5/13/2022 10:00 -0800, _f: undefined, _strict: undefined, _locale: [object Object]
Error
at Function.createFromInputFallback (https://discord.com/assets/aa6b38612af7f416ffe2.js:1305:330)
at Bn (https://discord.com/assets/aa6b38612af7f416ffe2.js:1331:696)
at Wn (https://discord.com/assets/aa6b38612af7f416ffe2.js:1334:356)
at Zn (https://discord.com/assets/aa6b38612af7f416ffe2.js:1334:199)
at Yn (https://discord.com/assets/aa6b38612af7f416ffe2.js:1333:886)
at Kn (https://discord.com/assets/aa6b38612af7f416ffe2.js:1334:697)
at zn (https://discord.com/assets/aa6b38612af7f416ffe2.js:1334:731)
at o (https://discord.com/assets/aa6b38612af7f416ffe2.js:1301:961)
at 918513 (https://discord.com/assets/ec3583b21f1deb1bec1d.js:21:346)
at l (https://discord.com/assets/d662b3d1424c57c3fbc3.js:1:154)
at 908570 (https://discord.com/assets/ec3583b21f1deb1bec1d.js:14:240)
at l (https://discord.com/assets/d662b3d1424c57c3fbc3.js:1:154)
at 596801 (https://discord.com/assets/932e94d3096017cf5842.js:14:162)
at Function.l (https://discord.com/assets/d662b3d1424c57c3fbc3.js:1:154)", source: https://discord.com/assets/cd14ce5b3de79d42c84f.js (152)
[0227/140240.214:INFO:CONSOLE(152)] "[DEPRECATED] Please use subscribeWithSelector middleware", source: https://discord.com/assets/cd14ce5b3de79d42c84f.js (152)

@Trxnce
Copy link

Trxnce commented Feb 27, 2023

Update: Now opens chrome window and gives no more errors.

@Derpitron
Copy link
Owner

Apologies for the delay, I have exams and am not able to devote time to review the PR. This should be merged in by Friday, by rights

@Farid31J
Copy link

Farid31J commented Mar 1, 2023

how do i use this method? can anyone help me for this?

@Derpitron
Copy link
Owner

Hello @Farid31J , this feature is not available as of yet, it will be added in around 1 week's time. Follow this conversation or Watch this repository to get updated on it.

@Farid31J
Copy link

Farid31J commented Mar 2, 2023

okay, i really want to test it out but i don't know how to use it, so i guess im gonna watch the progress

src/main.py Outdated Show resolved Hide resolved
src/main.py Outdated Show resolved Hide resolved
src/main.py Outdated Show resolved Hide resolved
src/main.py Outdated Show resolved Hide resolved
src/main.py Outdated Show resolved Hide resolved
src/main.py Outdated Show resolved Hide resolved
src/main.py Outdated Show resolved Hide resolved
src/main.py Outdated Show resolved Hide resolved
src/main.py Outdated Show resolved Hide resolved
src/main.py Outdated Show resolved Hide resolved
@Derpitron
Copy link
Owner

Derpitron commented Mar 2, 2023

You are doing an amazing job with your code! I apologize for not being able to test it in depth and help you out. Don't get discouraged by my comments (if you are)

@Derpitron Derpitron added the enhancement New feature or request label Mar 2, 2023
@Derpitron Derpitron self-assigned this Mar 2, 2023
@Derpitron
Copy link
Owner

Why does this program need the token as a user input?

@LuXeZs
Copy link
Collaborator Author

LuXeZs commented Mar 2, 2023

Why does this program need the token as a user input?

The link you get from discord to reset you password is static and looks like this https://discord.com/reset#token=
So I just ask the user what the token is so it can open the reset page for them

@LuXeZs
Copy link
Collaborator Author

LuXeZs commented Mar 2, 2023

You are doing an amazing job with your code! I apologize for not being able to test it in depth and help you out. Don't get discouraged by my comments (if you are)

I'm not getting discouraged as it's my first ever time even trying to code python so learning all the little quirks has been fun and I mainly do stuff after work so I'm usually not full focused

@Derpitron
Copy link
Owner

The link you get from discord to reset you password is static and looks like this discord.com/reset#token= So I just ask the user what the token is so it can open the reset page for them

What if the user doesn't know their token?

@Farid31J
Copy link

Farid31J commented Mar 2, 2023

The link you get from discord to reset you password is static and looks like this discord.com/reset#token= So I just ask the user what the token is so it can open the reset page for them

What if the user doesn't know their token?

i think he means that the token from our reset password token but im kinda confusd too what token for it.

@LuXeZs
Copy link
Collaborator Author

LuXeZs commented Mar 3, 2023

The link you get from discord to reset you password is static and looks like this discord.com/reset#token= So I just ask the user what the token is so it can open the reset page for them

What if the user doesn't know their token?

i think he means that the token from our reset password token but im kinda confusd too what token for it.

It is the the link you get from the email, you have to mainly request the reset first and then copy the token and put it in the .env

I'll add the steps to the readme when I have some free time.

@Farid31J
Copy link

Farid31J commented Mar 3, 2023

The link you get from discord to reset you password is static and looks like this discord.com/reset#token= So I just ask the user what the token is so it can open the reset page for them

What if the user doesn't know their token?

i think he means that the token from our reset password token but im kinda confusd too what token for it.

It is the the link you get from the email, you have to mainly request the reset first and then copy the token and put it in the .env

I'll add the steps to the readme when I have some free time.

okay thanks !

Attempted code is displayed with a delay issue should be fixed and this will be my last edit unless more issues are found.

I am also currently working on trying to build a GUI for this but that is in it's very early stages.
@LuXeZs
Copy link
Collaborator Author

LuXeZs commented Mar 3, 2023

Forgot to look at this page before I continued my work, so my mistake for not resolving the issues but I have got a new update with hopefully all the issues resolved.

@Derpitron I'm going to work on all your suggestions today and will try explain my work better, I have been setting it up around my preference and forgetting about how easy it would be to read and understand.

Sorry everyone about the mess first time using GitHub so bear with me well I learn.

@Farid31J
Copy link

Farid31J commented Mar 3, 2023

Forgot to look at this page before I continued my work, so my mistake for not resolving the issues but I have got a new update with hopefully all the issues resolved.

@Derpitron I'm going to work on all your suggestions today and will try explain my work better, I have been setting it up around my preference and forgetting about how easy it would be to read and understand.

Sorry everyone about the mess first time using GitHub so bear with me well I lea

it's fine! atleast i can used it after it done, or someone can test it for me, cause im not really understand to some coding stuff

@Farid31J
Copy link

Farid31J commented Mar 3, 2023

Screenshot (78)

im trying resetting the password and try to test it

@Derpitron
Copy link
Owner

@Farid31J the program is working as intended. Though, it is not guaranteed to always get the correct code, so you might have to attempt it many times. Run it at most 4 times a day, otherwise you may get IP banned.

@Farid31J
Copy link

Farid31J commented Mar 3, 2023

@Farid31J the program is working as intended. Though, it is not guaranteed to always get the correct code, so you might have to attempt it many times. Run it at most 4 times a day, otherwise you may get IP banned.

okay!

@Derpitron Derpitron merged commit 104a467 into Derpitron:main Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

how to use this for password reset? Kind of an unrelated question: How to use on password reset?
4 participants