mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-16 22:53:52 +01:00
Ensure that we define sender_domain
This commit is contained in:
parent
75d4986a8c
commit
cbf82dddf1
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ def check(event, auth_events, do_sig_check=True, do_size_check=True):
|
|||
return
|
||||
|
||||
if event.type == EventTypes.Create:
|
||||
sender_domain = get_domain_from_id(event.sender)
|
||||
room_id_domain = get_domain_from_id(event.room_id)
|
||||
if room_id_domain != sender_domain:
|
||||
raise AuthError(
|
||||
|
|
Loading…
Reference in a new issue