Add serverside LOGOUT command #239

Merged
lars.winzer merged 9 commits from feat/41-add-serverside-logout-command into main 2026-04-07 14:11:25 +02:00
Showing only changes of commit 7c9cf3e00d - Show all commits
@@ -31,8 +31,8 @@ public class LogoutHandler implements CommandHandler<LogoutRequest> {
*/
@Override
public void execute(LogoutRequest request) {
boolean was_removed = userRegistry.removeBySessionId(request.getSessionId());
if (was_removed) {
boolean wasRemoved = userRegistry.removeBySessionId(request.getSessionId());
if (wasRemoved) {
responseDispatcher.dispatch(new OkResponse(request.getContext()));
} else {
responseDispatcher.dispatch(