bug5773: in UserDetailsPresenter register a UserStatusEventHandler to update view upon user change

This commit is contained in:
Axel Uhl committed 2023-08-08 13:04:46 +02:00
1 parent 868557c70c
commit 71d752795d
1 file changed
+1
@@ -39,6 +39,7 @@ public class UserDetailsPresenter implements AbstractUserDetails.Presenter {
if (authenticationManager.getAuthenticationContext().isLoggedIn()) {
view.setUser(authenticationManager.getAuthenticationContext().getCurrentUser());
}
this.userService.addUserStatusEventHandler((user, preAuthenticated)->view.setUser(user));
}
public void setAuthenticationContext(AuthenticationContext authenticationContext) {