Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
47ad76ac
Commit
47ad76ac
authored
Jan 23, 2023
by
Dominik Hebeler
Browse files
abort captcha when not locked on solve
parent
8ac5a061
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
metager/app/Http/Controllers/HumanVerification.php
View file @
47ad76ac
...
...
@@ -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
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment