mak448a / Qtcord

Qtcord is a Discord client built with Qt aiming to bring a lightweight, native experience.
MIT License
74 stars 3 forks source link

TOTP 2FA support #35

Closed mak448a closed 2 months ago

mak448a commented 2 months ago

2FA isn't an option currently. Vote on implementation here! Workaround:

You can do it with ~/.var/app/io.github.mak448a.QTCord/config/QTCord/discordauth.txt. Put your discord token there. You can click this link for a tutorial on how to get your token.

mak448a commented 2 months ago

Help needed. I don't have a phone number.

mak448a commented 2 months ago

It seems like other clients just add a token login instead (bypassing 2fa by using existing login). However, I have no idea if it would be hard to add 2fa, but I can't test it without a phone number (or free phone number website that works with Discord)

dasvegy commented 2 months ago

Maybe implement a way where users are redirected to the Discord page, and from there, they can log in.

mak448a commented 2 months ago

Like I said, I can't test it, since I don't have a phone number. If you want to try, go ahead! This is open source after all.

mak448a commented 2 months ago

I may be able to borrow a phone though.

guihkx commented 2 months ago

but I can't test it without a phone number

At least here, Discord doesn't ask for a phone number just to enable 2FA using Google Authenticator or Authy...

mak448a commented 2 months ago

Oh. It seems like you can also use an authenticator app. I will check that out.

mak448a commented 2 months ago

Ok, it seems you have two separate methods of 2fa. Totp and Phone number. Totp would be doable, since I do have an authenticator app. But is it worth the hassle, when you can just grab the token from the login box? Is there a way to do a poll on GitHub?

guihkx commented 2 months ago

Well, if QTCord asked for the 2FA code it'd be much more user-friendly IMO, but in the end it's your project, and since you would be the one to implement this, only you can know for sure if it's worth it... :p

Is there a way to do a poll on GitHub?

It should be doable through GitHub Discussions, but I think you have to enable it first, or something.

mak448a commented 2 months ago

https://github.com/mak448a/QTCord/pull/38 for progress.

mak448a commented 2 months ago

Added for TOTP! Open another issue for SMS, if you need it.