mirror of
https://github.com/element-hq/synapse
synced 2024-08-20 02:40:22 +00:00
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:
parent
bfdcc7b9b6
commit
9c48f1ed22
1 changed files with 1 additions and 0 deletions
|
@ -157,6 +157,7 @@ class RegistrationHandler(BaseHandler):
|
||||||
)
|
)
|
||||||
except SynapseError:
|
except SynapseError:
|
||||||
# if user id is taken, just generate another
|
# if user id is taken, just generate another
|
||||||
|
user = None
|
||||||
user_id = None
|
user_id = None
|
||||||
token = None
|
token = None
|
||||||
attempts += 1
|
attempts += 1
|
||||||
|
|
Loading…
Reference in a new issue