File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,7 @@ QString TActionController::loginUserNameKey()
253253bool 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/* !
You can’t perform that action at this time.
0 commit comments