Skip to content
GitLab
Menu
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
1d69eeb4
Commit
1d69eeb4
authored
Sep 21, 2018
by
Dominik Hebeler
Browse files
Human Verification won't throw an error anymore with no database connection
parent
b811a951
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Middleware/HumanVerification.php
View file @
1d69eeb4
...
...
@@ -126,7 +126,8 @@ class HumanVerification
}
catch
(
\
Illuminate\Database\QueryException
$e
)
{
// Failure in contacting metager3.de
}
$request
->
request
->
add
([
'verification_id'
=>
$uid
,
'verification_count'
=>
$unusedResultPages
]);
if
(
isset
(
$uid
)
&&
isset
(
$unusedResultPages
))
$request
->
request
->
add
([
'verification_id'
=>
$uid
,
'verification_count'
=>
$unusedResultPages
]);
return
$next
(
$request
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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