Closed ghost closed 1 year ago
Nice bug report 🚀
The app should shut down the user session when the relogin function fails redirecting the user to login page.
As far as I understood, when the app is opened, since the user had already logged in in previous sessions, relogin function from action_creators.dart runs and tries to log in the user again. Lack of internet connection, for example, leads to an exception during this process. However, when it comes to a changed password, what happens is that the login function from network_router.dart returns a Session, in which session.authenticated == false. The function relogin enters, then, in the else statement.
I guess that redirecting the user to the login page inside the else statement solves the problem.
ao trocar a senha do SIGARRA ja estando autenticado, as informações não carregam e não surge nenhum erro até que se termine a sessão e faça login novamente Further information on: https://sentry.io/organizations/niaefeup/issues/?query=6e7fbc07e06340e3b635deb07b25d601