minor
This commit is contained in:
@@ -211,7 +211,10 @@ const Helpers = {
|
|||||||
log.info(`Actor ${req.body.actor} not found`)
|
log.info(`Actor ${req.body.actor} not found`)
|
||||||
return res.status(401).send('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
|
// still not valid
|
||||||
log.info(`Invalid signature from user ${req.body.actor}`)
|
log.info(`Invalid signature from user ${req.body.actor}`)
|
||||||
|
|||||||
Reference in New Issue
Block a user