Skip to content
Snippets Groups Projects
Commit 1fd71940 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

added dnaa to log

parent e5ab418c
No related branches found
No related tags found
1 merge request!1992Resolve "Include Audiocaptcha"
...@@ -124,7 +124,7 @@ class HumanVerification extends Controller ...@@ -124,7 +124,7 @@ class HumanVerification extends Controller
$time = microtime(true) - $time; $time = microtime(true) - $time;
} }
} }
self::logCaptchaSolve($query, $time); self::logCaptchaSolve($query, $time, $request->has("dnaa"));
$params['token'] = $token; // Overwrite if exists $params['token'] = $token; // Overwrite if exists
...@@ -145,12 +145,13 @@ class HumanVerification extends Controller ...@@ -145,12 +145,13 @@ class HumanVerification extends Controller
} }
} }
private static function logCaptchaSolve(string $query, float $time) private static function logCaptchaSolve(string $query, float $time, bool $dnaa = false)
{ {
$log = [ $log = [
now()->format("Y-m-d H:i:s"), now()->format("Y-m-d H:i:s"),
$query, $query,
"time=" . $time, "time=" . $time,
"dnaa=" . var_export($dnaa, true)
]; ];
$file_path = \storage_path("logs/metager/captcha_solve.csv"); $file_path = \storage_path("logs/metager/captcha_solve.csv");
$fh = fopen($file_path, "a"); $fh = fopen($file_path, "a");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment