mirror of
https://github.com/matrix-construct/construct
synced 2024-11-15 22:41:12 +01:00
modules/federation/invite: Verify the invite event before adding our signature to it.
This commit is contained in:
parent
2d5b4c9aca
commit
9a850c1637
1 changed files with 6 additions and 0 deletions
|
@ -236,4 +236,10 @@ check_event(const resource::request &request,
|
|||
"Proffered event has the following problems: %s",
|
||||
string(report)
|
||||
};
|
||||
|
||||
if(!verify(event, request.node_id))
|
||||
throw m::ACCESS_DENIED
|
||||
{
|
||||
"Invite event fails verification for %s", request.node_id
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue