0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-27 19:28:52 +02:00

modules/federation/invite: Verify the invite event before adding our signature to it.

This commit is contained in:
Jason Volk 2019-06-30 02:11:14 -07:00
parent 2d5b4c9aca
commit 9a850c1637

View file

@ -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
};
}