Merge pull request #610 from Rugvip/unique-user

handlers/register: make sure another user id is generated when a collision occurs
pull/598/head
Erik Johnston 2016-03-04 09:40:20 +00:00
commit ce82b9e48f
1 changed files with 1 additions and 0 deletions

View File

@ -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