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

Signed-off-by: Patrik Oldsberg <patrik.oldsberg@ericsson.com>
This commit is contained in:
Patrik Oldsberg 2016-02-29 23:11:06 +01:00
parent bfdcc7b9b6
commit 9c48f1ed22

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