+ _peer->dispatch(Protocol::LoginSuccess());
+ if (_metricsServer) {
+ _metricsServer->addLoginAttempt(uid, true);
+ }
+
+ qInfo() << qPrintable(tr("Client %1 initialized and authenticated successfully as \"%2\" (UserId: %3).")
+ .arg(socket()->peerAddress().toString(), msg.user, QString::number(uid.toInt())));
+
+ const auto& clientFeatures = _peer->features();
+ auto unsupported = clientFeatures.toStringList(false);
+ if (!unsupported.isEmpty()) {
+ if (unsupported.contains("NoFeatures"))
+ qInfo() << qPrintable(tr("Client does not support extended features."));
+ else
+ qInfo() << qPrintable(tr("Client does not support the following features: %1").arg(unsupported.join(", ")));
+ }