0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-07-04 10:18:52 +02:00

Merge pull request #487 from matrix-org/daniel/forceregistration

Require AS users to be registered before use
This commit is contained in:
Daniel Wagner-Hall 2016-01-14 11:06:43 +00:00
commit d14fcfd24a

View file

@ -528,6 +528,11 @@ class Auth(object):
403,
"Application service cannot masquerade as this user."
)
if not (yield self.store.get_user_by_id(user_id)):
raise AuthError(
403,
"Application service has not registered this user"
)
if not user_id:
raise KeyError