Skip to content
Snippets Groups Projects
Commit 9c48f1ed authored by Patrik Oldsberg's avatar Patrik Oldsberg
Browse files

handlers/register: make sure another user id is generated when a collision occurs

parent bfdcc7b9
No related branches found
No related tags found
No related merge requests found
......@@ -157,6 +157,7 @@ class RegistrationHandler(BaseHandler):
)
except SynapseError:
# if user id is taken, just generate another
user = None
user_id = None
token = None
attempts += 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment