Merge pull request #1111 from matrix-org/matthew/device-ids

make device IDs more useful for human disambiguation
pull/1117/head
Matthew Hodgson 2016-09-14 01:18:02 +01:00 committed by GitHub
commit 1b01488d27
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class DeviceHandler(BaseHandler):
attempts = 0
while attempts < 5:
try:
device_id = stringutils.random_string_with_symbols(16)
device_id = stringutils.random_string(10).upper()
yield self.store.store_device(
user_id=user_id,
device_id=device_id,