Skip to content

Commit

Permalink
Fix mark cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
SciLor authored May 12, 2024
1 parent 49e2cc0 commit c9934f6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/handler_cloud.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,14 +358,14 @@ error_t handleCloudClaim(HttpConnection *connection, const char_t *uri, const ch
httpPrepareHeader(connection, NULL, 0);
connection->response.statusCode = 200;

if (client_ctx->settings->cloud.dumpRuidAuthContentJson)
if (client_ctx->settings->cloud.dumpRuidAuthContentJson && connection->request.auth.found)
{
dumpRuidAuth(&tonieInfo->json, ruid, token);
}

if (!tonieInfo->json.nocloud || tonieInfo->json.cloud_override)
{
if (checkCustomTonie(ruid, token, client_ctx->settings) && !tonieInfo->json.cloud_override)
if (checkCustomTonie(ruid, token, client_ctx->settings) && !tonieInfo->json.cloud_override && connection->request.auth.found)
{
TRACE_INFO(" >> custom tonie detected, nothing forwarded\r\n");
markCustomTonie(tonieInfo);
Expand Down Expand Up @@ -466,7 +466,7 @@ error_t handleCloudContent(HttpConnection *connection, const char_t *uri, const
tonie_info_t *tonieInfo;
tonieInfo = getTonieInfoFromRuid(ruid, client_ctx->settings);

if (!tonieInfo->json.nocloud && !noPassword && checkCustomTonie(ruid, token, client_ctx->settings) && !tonieInfo->json.cloud_override)
if (!tonieInfo->json.nocloud && !noPassword && checkCustomTonie(ruid, token, client_ctx->settings) && !tonieInfo->json.cloud_override && connection->request.auth.found)
{
TRACE_INFO(" >> custom tonie detected, nothing forwarded\r\n");
markCustomTonie(tonieInfo);
Expand Down

0 comments on commit c9934f6

Please sign in to comment.