mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-03 01:54:48 -04:00
Merge pull request #487 from matrix-org/daniel/forceregistration
Require AS users to be registered before use
This commit is contained in:
commit
d14fcfd24a
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue