mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-09-07 16:41:57 +00:00
Merge pull request #1111 from matrix-org/matthew/device-ids
make device IDs more useful for human disambiguation
This commit is contained in:
commit
1b01488d27
@ -58,7 +58,7 @@ class DeviceHandler(BaseHandler):
|
|||||||
attempts = 0
|
attempts = 0
|
||||||
while attempts < 5:
|
while attempts < 5:
|
||||||
try:
|
try:
|
||||||
device_id = stringutils.random_string_with_symbols(16)
|
device_id = stringutils.random_string(10).upper()
|
||||||
yield self.store.store_device(
|
yield self.store.store_device(
|
||||||
user_id=user_id,
|
user_id=user_id,
|
||||||
device_id=device_id,
|
device_id=device_id,
|
||||||
|
Loading…
Reference in New Issue
Block a user