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

abort captcha when not locked on solve

parent 8ac5a061
No related branches found
No related tags found
2 merge requests!2027Development,!2024Development
......@@ -165,8 +165,10 @@ class HumanVerification extends Controller
# The Captcha was correct. We can remove the key from the user
# Additionally we will whitelist him so he is not counted towards botnetwork
$human_verification = ModelsHumanVerification::createFromKey($request->input("key"));
$human_verification->unlockUser();
$human_verification->verifyUser();
if ($human_verification !== null) {
$human_verification->unlockUser();
$human_verification->verifyUser();
}
Cache::put($captcha_id, true, now()->addMinutes(10));
......
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