bco.bcozy icon indicating copy to clipboard operation
bco.bcozy copied to clipboard

Check if the session has expired

Open Harmageddon opened this issue 9 years ago • 3 comments

At the moment, the login panel shows that the user is still logged in, even if the session has expired and thus, actions have failed.

TODO: Show overlay to inform user about logout

Harmageddon avatar Aug 14 '17 13:08 Harmageddon

@pLeminoq aktuell wird der Observer nicht benachrichtigt wenn man sich ausloggt (oder ausgeloggt wird), da die Observer mit null informiert werden, aber die Observable kein null weiterleiten. (soweit ich das jetzt sehe) Bsp: SessionManager:367 loginObervable.notifyObservers(null); und: AbstractObservable:114 if(observable == null) { LOGGER.debug("Skip notification because Observable is null!");

Zukye avatar Sep 26 '17 19:09 Zukye

That is correct. I just fixed that in the authentication project. Now even on logout the string userId@clientId is notified which is just @ in this case. So you can either check if this is the string you have been notified with or just use the isLoggedIn method of the session manager to check if its a logout.

pLeminoq avatar Sep 27 '17 15:09 pLeminoq

bcozy development has been freezed.

DivineThreepwood avatar Jan 11 '22 23:01 DivineThreepwood