mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
Use UserId to create FQ user id
This commit is contained in:
parent
625e13bfde
commit
e52f4dc599
@ -133,7 +133,7 @@ class LoginRestServlet(ClientV1RestServlet):
|
||||
for child in root[0]:
|
||||
if child.tag.endswith("user"):
|
||||
user = child.text
|
||||
user_id = "@%s:%s" % (user, self.servername)
|
||||
user_id = UserID.create(user, self.hs.hostname).to_string()
|
||||
auth_handler = self.handlers.auth_handler
|
||||
user_exists = yield auth_handler.does_user_exist(user_id)
|
||||
if user_exists:
|
||||
|
Loading…
Reference in New Issue
Block a user