Skip to content
Snippets Groups Projects
Commit ce82b9e4 authored by Erik Johnston's avatar Erik Johnston
Browse files

Merge pull request #610 from Rugvip/unique-user

handlers/register: make sure another user id is generated when a collision occurs
parents 09b1d980 9c48f1ed
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