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
aaf37c32
Commit
aaf37c32
authored
May 03, 2018
by
Dominik Hebeler
Browse files
Bugfix URL Parameter wurden nicht eingefügt
parent
bf5ba310
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Middleware/HumanVerification.php
View file @
aaf37c32
...
...
@@ -39,7 +39,7 @@ class HumanVerification
[
'id'
=>
$id
,
'unusedResultPages'
=>
1
,
'locked'
=>
false
,
'updated_at'
=>
now
()]
);
# Insert the URL the user tries to reach
DB
::
table
(
'usedurls'
)
->
insert
([
'user_id'
=>
$id
,
'url'
=>
$request
->
ur
l
()]);
DB
::
table
(
'usedurls'
)
->
insert
([
'user_id'
=>
$id
,
'url'
=>
url
()
->
ful
l
()]);
$user
=
DB
::
table
(
'humanverification'
)
->
where
(
'id'
,
$id
)
->
first
();
}
else
if
(
$user
->
locked
!==
1
){
$unusedResultPages
=
intval
(
$user
->
unusedResultPages
);
...
...
@@ -53,7 +53,7 @@ class HumanVerification
}
DB
::
table
(
'humanverification'
)
->
where
(
'id'
,
$id
)
->
update
([
'unusedResultPages'
=>
$unusedResultPages
,
'locked'
=>
$locked
,
'updated_at'
=>
$createdAt
]);
# Insert the URL the user tries to reach
DB
::
table
(
'usedurls'
)
->
insert
([
'user_id'
=>
$id
,
'url'
=>
$request
->
ur
l
()]);
DB
::
table
(
'usedurls'
)
->
insert
([
'user_id'
=>
$id
,
'url'
=>
url
()
->
ful
l
()]);
}
$request
->
request
->
add
([
'verification_id'
=>
$id
,
'verification_count'
=>
$unusedResultPages
]);
...
...
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