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

removing whitelist

parent 58f51845
No related branches found
No related tags found
1 merge request!1985Development
......@@ -37,6 +37,8 @@ class Spam
if ($spam === true) {
$human_verification = \app()->make(HumanVerification::class);
$human_verification->lockUser();
$human_verification->setUnusedResultPage(50);
$human_verification->setWhiteListed(false);
}
return $next($request);
......
......@@ -172,6 +172,12 @@ class HumanVerification
return $this->user["whitelist"];
}
public function setWhiteListed(bool $whitelisted)
{
return $this->user["whitelist"] = $whitelisted;
$this->saveUser();
}
function addQuery()
{
$this->user["unusedResultPages"]++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment