Added ACCEPTED response to registration in accept all mode.

This commit is contained in:
Andrew Lalis 2021-09-25 13:10:35 +02:00
parent d34a407284
commit fe4bda42fa
1 changed files with 1 additions and 0 deletions

View File

@ -50,6 +50,7 @@ public class ClientManager {
if (userDoc != null) throw new InvalidIdentificationException("Username is taken."); if (userDoc != null) throw new InvalidIdentificationException("Username is taken.");
if (this.server.getConfig().isAcceptAllNewClients()) { if (this.server.getConfig().isAcceptAllNewClients()) {
var clientData = this.authService.registerNewClient(registration); var clientData = this.authService.registerNewClient(registration);
clientThread.sendToClient(new RegistrationStatus(RegistrationStatus.Type.ACCEPTED));
this.initializeClientConnection(clientData, clientThread); this.initializeClientConnection(clientData, clientThread);
} else { } else {
var clientId = this.authService.registerPendingClient(registration); var clientId = this.authService.registerPendingClient(registration);