Skip to content

Commit 3686a79

Browse files
add debug print.
1 parent 098aa6d commit 3686a79

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tactioncontroller.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ QString TActionController::loginUserNameKey()
253253
bool TActionController::verifyRequest(const THttpRequest &request) const
254254
{
255255
if (!csrfProtectionEnabled()) {
256+
tSystemWarn("Skipped verifying authenticity token : {}", request.header().path().data());
256257
return true;
257258
}
258259

@@ -268,7 +269,11 @@ bool TActionController::verifyRequest(const THttpRequest &request) const
268269
}
269270

270271
tSystemDebug("postAuthToken: {}", (const char*)postAuthToken.data());
271-
return Tf::strcmp(postAuthToken, authenticityToken());
272+
bool res = Tf::strcmp(postAuthToken, authenticityToken());
273+
if (res) {
274+
tSystemDebug("Verified authenticity token : {}", request.header().path().data());
275+
}
276+
return res;
272277
}
273278

274279
/*!

0 commit comments

Comments
 (0)