make device IDs more useful for human disambiguation

This commit is contained in:
Matthew Hodgson 2016-09-13 00:02:39 +01:00
parent 4162f820ff
commit edbcb4152b

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,