Commit be538832 authored by Dominik Hebeler's avatar Dominik Hebeler

Fixed a bug in humanprotection

parent aea7af72
......@@ -168,7 +168,7 @@ class HumanVerification extends Controller
private static function checkId($request, $id)
{
if (hash("sha512", $request->ip() . $_SERVER["AGENT"]) === $id) {
if (hash("sha512", $request->ip() . $_SERVER["AGENT"] . "uid") === $id) {
return true;
} else {
return false;
......
......@@ -27,7 +27,7 @@ class HumanVerification
$redis = Redis::connection('redisCache');
try {
$id = hash("sha512", $request->ip());
$uid = hash("sha512", $request->ip() . $_SERVER["AGENT"]);
$uid = hash("sha512", $request->ip() . $_SERVER["AGENT"] . "uid");
unset($_SERVER["AGENT"]);
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment