teams-for-linux icon indicating copy to clipboard operation
teams-for-linux copied to clipboard

Changing password breaks app

Open geez0x1 opened this issue 4 years ago • 8 comments

Describe the bug Changing my account password breaks the Teams app, giving a message saying the tab needs to be refreshed. Doing so by pressing the button eventually brings it back to the same point.

To Reproduce Steps to reproduce the behavior:

  1. Start Teams succesfully
  2. Change your account password
  3. Close and start Teams again (cannot recall whether I was actively logged out)
  4. See mentioned error

Expected behavior Presented with initial log-in screen, as on first use.

Desktop Ubuntu 21.04, latest snap package

Workaround Deleting the contents of ~/snap/teams-for-linux/ solved the problem, but should not be necessary of course.

geez0x1 avatar Sep 15 '21 10:09 geez0x1

@geez0x1 I've seen this in a different context. It has something to do with organisation setup. Ex: being idle for long. It says refresh but refreshing brings back to the same dialog again. I presume auth token expiration causing this. We've been working multi tenant/multi tab feature here #436 which would eventually solve this by allowing user to close the tab and open a fresh new session. @IsmaelMartinez have you experienced this? Do you think there is another solution?

jijojosephk avatar Sep 15 '21 12:09 jijojosephk

Not seen that but it's probably some cached context. You can check in the know issues MD file. I think you might just be able to just remove some folders inside that folder. If you manage to find what ones, it might be possible to force a refresh of them.

IsmaelMartinez avatar Sep 15 '21 14:09 IsmaelMartinez

A workaround is to delete ~/snap/teams-for-linux/current; which does mean loggin in again and reconfiguring the settings (e.g. dark theme). This is obviously not ideal, but I was not able to find the particular cached context. Maybe digging further into that folder will result in a particular file, but unfortunately I'm very short on time.

I noticed also that if I leave Teams open when putting my computer to stand-by at night, it is broken the next morning. This is probably a related issue but occurs relatively often. It might be related to my organisation requiring me to log in again every day (with 2FA).

geez0x1 avatar Nov 30 '21 18:11 geez0x1

Same issue. Changed password today and unable to login in again. Get a 500 error.

Desktop - EndeavourOS Linux x86_64

secdoc avatar Aug 05 '22 19:08 secdoc

@secdoc could you explain where did you change the password. I think the same issue happens of teams is opened in web browser.

jijojosephk avatar Aug 09 '22 03:08 jijojosephk

@secdoc could you explain where did you change the password. I think the same issue happens of teams is opened in web browser.

I changed my password within my works AD. Once changed I could not re-login to use the new password forcing me to have to uninstall and reinstall.

secdoc avatar Aug 09 '22 08:08 secdoc

There is probably some caching going on (not of the password, but of a token) reason why deleting the config folder sorts the problem. Might be worth investigating that area.

IsmaelMartinez avatar Aug 12 '22 18:08 IsmaelMartinez

@IsmaelMartinez it is...when you log in the initial option is to keep logged in, but there is no way to change that after the password reset...so the only option is to not check the option in log on and to authenticate at each log on...

secdoc avatar Aug 12 '22 18:08 secdoc

@geez0x1 could you share the settings you would to preserve even after clearing the storage. In the upcoming release 1.0.41 there's a command line flag to clear the storage during the startup which is as same as deleting the config but would help some users who have less knowledge about doing such activities.

I could find out that theme is stored 'Local Storage'.

jijojosephk avatar Sep 29 '22 05:09 jijojosephk

@jijojosephk Sorry for the late reply. You mean the settings I would like to preserve I suppose? Personally the things I customise are typically dark theme and usage of British English. Although this problem probably would need to be addressed from the other direction; specifically clearing the relevant cached login context, keeping everything else.

geez0x1 avatar Nov 20 '22 17:11 geez0x1

I was facing the same error, after changing my password for my e-mail on the browser I began having connection issues (like messages not being delivered) until a Teams window opened on the browser I didn't think it was my password change. I tried reinstalling Teams but after initializing it came straight to the error (a loop into trying to log in and then back to the error screen). I'm not sure if I even typed my new password but suddenly I was logged in and the error was gone. I'm using POP!_OS 22.04

pebueno avatar Apr 12 '23 13:04 pebueno

Sorry, don't find a good solution. Currently we just need to use the command line option --clearStorage which starts a fresh session. Closing this as we don't find a solution.

jijojosephk avatar Apr 23 '23 06:04 jijojosephk

That's okay for me - I honestly haven't seen this error in a while, partly because my organisation stopped requiring me to change me password regularly.

geez0x1 avatar Apr 25 '23 08:04 geez0x1