NIAEFEUP / uni

Mobile app designed to help students of the University of Porto to manage their academic life.
GNU General Public License v3.0
45 stars 15 forks source link

Automatic logout when password is expired #936

Closed LuisDuarte1 closed 11 months ago

LuisDuarte1 commented 1 year ago

We should check on app start (if there's a persistent session) if login fails, try to get the reason why from sigarra, and if it's expired/change automatically logout from the app.

Not sure if #814 made this (cc. @thePeras) because in the current version this behavior doesn't work, if it already exists.

LuisDuarte1 commented 1 year ago

Apparently #814 has done this already, but it doesn't work for me at least on the current version on develop

thePeras commented 1 year ago

I review the code and the #814 doesn't handle this case, since it's only in the login function. (login fails and checks if the password was expired) To handle this, we should think also including the checking the relogin function.

DGoiana commented 11 months ago

After changing the password, automatic logout flow was executed.