This commit is contained in:
2026-06-17 14:16:24 +03:30
parent e7fa0c9d2c
commit 0f0d2a88e0
@@ -73,6 +73,7 @@ public class ClientSession implements Runnable {
// 6. Otherwise, create the user's folders with FileManager.createUserFolders(...)
// and send back LOGIN_SUCCESS.
this.username = requestedUser;
FileManager.createUserFolders(username);
out.writeObject(new ChatMessage(MessageType.LOGIN_SUCCESS, "Server", null, "Welcome "+username));
out.flush();
System.out.println("User logged in: "+username);