From 28ea0545ec2ee32d0ea071c4bb3c373bc38968c4 Mon Sep 17 00:00:00 2001 From: Tobi <28510156+sezanzeb@users.noreply.github.com> Date: Tue, 30 Jul 2024 12:15:40 +0200 Subject: [PATCH] Log proper RPC method name for the initial setup --- libnymea-core/jsonrpc/jsonrpcserverimplementation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libnymea-core/jsonrpc/jsonrpcserverimplementation.cpp b/libnymea-core/jsonrpc/jsonrpcserverimplementation.cpp index 77e518da..404822b4 100644 --- a/libnymea-core/jsonrpc/jsonrpcserverimplementation.cpp +++ b/libnymea-core/jsonrpc/jsonrpcserverimplementation.cpp @@ -621,7 +621,7 @@ void JsonRPCServerImplementation::processJsonPacket(TransportInterface *interfac // if there is no user in the system yet, let's fail unless this is a special method for authentication itself if (NymeaCore::instance()->userManager()->initRequired()) { if (!authExemptMethodsNoUser.contains(methodString) && (token.isEmpty() || !NymeaCore::instance()->userManager()->verifyToken(token))) { - sendUnauthorizedResponse(interface, clientId, commandId, "Initial setup required. Call Users.CreateUser first."); + sendUnauthorizedResponse(interface, clientId, commandId, "Initial setup required. Call JSONRPC.CreateUser first."); qCWarning(dcJsonRpc()) << "Initial setup required but client does not call the setup. Dropping connection."; interface->terminateClientConnection(clientId); qCWarning(dcJsonRpc()) << "Staring connection lockdown timer";