Add check for delete user broadcasts for unknown users (unverifiable signature)
This commit is contained in:
parent
ca0342f4e0
commit
4a0337bdad
1 changed files with 5 additions and 1 deletions
|
@ -35,7 +35,11 @@ async function verifySignature (req, res, next) {
|
|||
}
|
||||
next()
|
||||
} catch (err) {
|
||||
console.log('error during signature verification', err.message)
|
||||
if (req.body.type === 'Delete' && err.mesage.startsWith('410')) {
|
||||
// user delete message that can't be verified because we don't have the user cached
|
||||
res.status(200).send()
|
||||
}
|
||||
console.log('error during signature verification', err.message, req.body)
|
||||
return res.status(500).send()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue