AccountSwitcher icon indicating copy to clipboard operation
AccountSwitcher copied to clipboard

[Issue] Can't switch to acc with 2 factor auth

Open PurpleDxD opened this issue 4 years ago • 47 comments

Describe the bug Tries to switch to account with 2 factor auth but doesn't get passed the login screen

To Reproduce Steps to reproduce the behavior: Switch to account with 2 factor auth enabled

Expected behavior Account should switch

Information (please complete the following information):

  • OS: Win 10
  • Plugin Version: Latest
  • Discord version: Stable
  • Compact Mode enabled? no
  • Encryption enabled? yes

PurpleDxD avatar Jan 07 '20 23:01 PurpleDxD

It should work. Try saving the account again, maybe there was some problem when saving it.

aarondoet avatar Jan 08 '20 02:01 aarondoet

Describe the bug Tries to switch to account with 2 factor auth but doesn't get passed the login screen

To Reproduce Steps to reproduce the behavior: Switch to account with 2 factor auth enabled

Expected behavior Account should switch

Information (please complete the following information):

* OS: Win 10

* Plugin Version: Latest

* Discord version: Stable

* Compact Mode enabled? no

* Encryption enabled? yes

It also doesn't work for me. i can switch from 2fa accounts to non 2fa accounts, but not from non 2fa accounts to 2fa accounts. or from 2fa account to 2fa accounts

i use the same settings as the guy before.

Mirrored6 avatar Feb 04 '20 11:02 Mirrored6

did you also try saving the 2fa account again?

aarondoet avatar Feb 04 '20 12:02 aarondoet

yes. and it didn't work. saddly

Mirrored6 avatar Feb 04 '20 19:02 Mirrored6

I asked again in my server and I was told that switching to accounts with 2fa works. And I really don't know why it should work for accounts without 2fa but not for accounts with 2fa.

aarondoet avatar Feb 04 '20 19:02 aarondoet

I'm experiencing the same issues as the people above. I've also tried saving again too. Only switching between accounts without 2FA work or switching from 2FA to non 2FA accounts.

z-e-x avatar Feb 04 '20 21:02 z-e-x

What the f... I don't understand why and I have no clue why this could be the case

aarondoet avatar Feb 04 '20 21:02 aarondoet

could the problem be on his end? and not the plugin also when i enabled 2fa i got the same bug but fixed it by simply removing the account from the plugin and saving again

muropakett avatar Feb 05 '20 06:02 muropakett

For me, I've tried saving it multiple times and it didn't work. I've been using accountswitcher since 9/24/2019 and haven't been able to get it to work with 2fa at all and I've tried multiple times.

z-e-x avatar Feb 05 '20 06:02 z-e-x

remove the plugin and reinstall?

muropakett avatar Feb 05 '20 06:02 muropakett

I tried that earlier, still the same issue. I'm gonna try a third time and see if I can get it to work.

z-e-x avatar Feb 05 '20 06:02 z-e-x

alright

muropakett avatar Feb 05 '20 06:02 muropakett

It must've been something with my previous file. I removed the plugin but noticed the settings were staying the same because I wasn't reloading Discord (I think that's why). After reloading a couple times after every change I saved the 2fa account again and it's working fine.

z-e-x avatar Feb 05 '20 07:02 z-e-x

good that its working now

muropakett avatar Feb 05 '20 09:02 muropakett

Same behavior here. When switching to a 2fa protected account, the login page shows up. After disabling 2fa for that account everything works as expected again. So it's definitely a problem with 2fa.

xenorio avatar Mar 22 '20 16:03 xenorio

I want to check if there are similarities between you all. Please add a reaction based on your settings:

:+1: Encryption enabled :-1: Encryption disabled

:heart: Discord Stable :rocket: Discord Canary :eyes: Discord PTB

aarondoet avatar Mar 22 '20 16:03 aarondoet

it cant be 2fa because i got it enabled and it works just fine

muropakett avatar Mar 22 '20 18:03 muropakett

@muropakett great that it works for you. but when something doesn't work, you change one single variable (whether or not 2fa is enabled) and it suddenly works fine, logic would suggest that this variable is the reason for it not working. could be that it's a bug that only happens on specific systems, could be that you're just lucky. but fact is that with 2fa enabled i can't switch accounts, but when i disable it i can. i have even reproduced this multiple times now, even on different discord versions (stable and canary), so this is not some weird random one-off anomaly.

xenorio avatar Mar 26 '20 01:03 xenorio

When it is working for many people, removing and adding the account does not help and nobody can give me hints on why it might not be working I can't help. I can't reproduce it, many people can't reproduce it and those who have the problem can't (or at least they did not) give me any information that could help me.

aarondoet avatar Mar 26 '20 01:03 aarondoet

Well, what information would be relevant? I tested it on Discord stable and canary, i'm using Pop!_OS 19.04 (Ubuntu based) with x64 architecture and i3wm instead of gnome, i have the latest versions of BetterDiscord and this plugin installed, the Discord account i tested it with has Nitro, i can log in without any issues, and i can use the Discord API directly with the user token

xenorio avatar Mar 26 '20 02:03 xenorio

The problem is that I don't really know what information could be useful since everything I thought that might be useful does not seem to be important. I might get some hints when being able to test it on my own and playing around with stuff, but that is very hard to do when I can't reproduce it. And I don't want to ask people to give me remote control over their computer and let me test stuff with their token.

aarondoet avatar Mar 26 '20 02:03 aarondoet

hmm shouldnt u ask xenorio to send some parts of the console and ask the same parts from someone whos account switcher works with 2fa

muropakett avatar Mar 26 '20 06:03 muropakett

idk if that would work but still

muropakett avatar Mar 26 '20 06:03 muropakett

I don't mean to bump this but I also seem to have the same issue. I have 4 accounts setup with this plugin now and my account has 2FA. It has the same issue where it just stops at the login screen. I have to login again and then I can switch between other accounts that dont have 2FA active. Switching back the account with 2FA just fails. If I remove 2FA from the account it switches just fine :/

chaoticNRO avatar Jun 04 '20 00:06 chaoticNRO

Hey guys, I managed to fix the issue. So, when I first saved the account with 2FA, I had encryption disabled. Like everyone above, my second account was saved without 2FA. With encryption disabled, I was able to switch to my non-2FA account without logging in again, but with my 2FA account, I wasn't able to get past the login screen when switching back again.

The fix for me was removing all the accounts I had already saved. Then, I enabled encryption and set the password using the instructions provided (in the Developer Tools). After that, I saved all the accounts again, and was able to transfer between 2FA and non-2FA accounts just fine without having to relog every time.

Hope this helps!

legitatx avatar Jun 05 '20 01:06 legitatx

Hey guys, I managed to fix the issue. So, when I first saved the account with 2FA, I had encryption disabled. Like everyone above, my second account was saved without 2FA. With encryption disabled, I was able to switch to my non-2FA account without logging in again, but with my 2FA account, I wasn't able to get past the login screen when switching back again.

The fix for me was removing all the accounts I had already saved. Then, I enabled encryption and set the password using the instructions provided (in the Developer Tools). After that, I saved all the accounts again, and was able to transfer between 2FA and non-2FA accounts just fine without having to relog every time.

Hope this helps!

I tried this and the console usually tells me "undefined" after I typed in the command with my selected password. My 2FA account still stops at the login screen :( Glad that fix worked for you though!

chaoticNRO avatar Jun 05 '20 12:06 chaoticNRO

The function to manually set the password in the console will always return undefined. It will just perform the process of you typing that password in the popout because that does not work atm.

aarondoet avatar Jun 05 '20 12:06 aarondoet

I had the same issue.

What I did, was remove the account from the Plugins tab, then add it again. That solved the issue for me!

React if this worked.

cyberrrr avatar Aug 28 '20 13:08 cyberrrr

im having the same issue, and none of the mentioned steps above have worked, so i thought id provide the loglines if its any help image

murl-digital avatar Oct 20 '20 14:10 murl-digital

I have the same issue now. I have 2FA on 2nd account and I get prompted with a login screen.

Edit: I just saved the 2FA account as secondary and now it works fine.

chocoearly44 avatar Nov 03 '20 15:11 chocoearly44

Same issue

Neko-LoverDisc avatar Nov 19 '20 01:11 Neko-LoverDisc

initital startup is always working fine. After switching and switching back, it doesn't work. Something is different between the discord auth machanism, and this mechanism? Is there a way to use the discord builtin auth mechanism, to auth a account? EDIT: The Solution really seems to just save the account multiple times.

C0D3-M4513R avatar Dec 20 '20 13:12 C0D3-M4513R