mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-14 15:51:37 +00:00
Redact the event before verifying its signature
... in the federation invite API.
This commit is contained in:
parent
31f6c21d98
commit
5740cb3e58
@ -73,7 +73,7 @@ func Invite(
|
|||||||
// Check that the event is signed by the server sending the request.
|
// Check that the event is signed by the server sending the request.
|
||||||
verifyRequests := []gomatrixserverlib.VerifyJSONRequest{{
|
verifyRequests := []gomatrixserverlib.VerifyJSONRequest{{
|
||||||
ServerName: event.Origin(),
|
ServerName: event.Origin(),
|
||||||
Message: event.JSON(),
|
Message: event.Redact().JSON(),
|
||||||
AtTS: event.OriginServerTS(),
|
AtTS: event.OriginServerTS(),
|
||||||
}}
|
}}
|
||||||
verifyResults, err := keys.VerifyJSONs(verifyRequests)
|
verifyResults, err := keys.VerifyJSONs(verifyRequests)
|
||||||
|
Loading…
Reference in New Issue
Block a user