Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
les
gancio
Commits
37b96678
Verified
Commit
37b96678
authored
Jun 25, 2021
by
les
Browse files
minor
parent
58dda736
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/federation/helpers.js
View file @
37b96678
...
...
@@ -211,7 +211,10 @@ const Helpers = {
log
.
info
(
`Actor
${
req
.
body
.
actor
}
not found`
)
return
res
.
status
(
401
).
send
(
'
Actor not found
'
)
}
if
(
httpSignature
.
verifySignature
(
parsed
,
user
.
object
.
publicKey
.
publicKeyPem
))
{
return
next
()
}
if
(
httpSignature
.
verifySignature
(
parsed
,
user
.
object
.
publicKey
.
publicKeyPem
))
{
log
.
debug
(
`Valid signature from
${
req
.
body
.
actor
}
`
)
return
next
()
}
// still not valid
log
.
info
(
`Invalid signature from user
${
req
.
body
.
actor
}
`
)
...
...
Write
Preview
Supports
Markdown
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