Closed jpmens closed 7 months ago
TASK [system: create password files in userdata] ************************************
ok: [localhost] => (item=jane)
ok: [localhost] => (item=bbb)
ok: [localhost] => (item=simu)
ok: [localhost] => (item=simu)
Passwords are not an issue, we do this correctly.
What is a problem are the .otrc
(and thus also URL encode) files which we create per/user but which should be per user/device.
We can easily store user-device.otrc
, but this will mean adding intelligence to index.php
so that it pics up all .otrc
for user-device
TASK [system: generate user .otrc files in userdata] ********************************
changed: [localhost] => (item=jane-nokia)
changed: [localhost] => (item=bbb-nokia)
changed: [localhost] => (item=simu-pixel)
changed: [localhost] => (item=simu-pixelnop)
$ diff /usr/local/owntracks/userdata/simu-*.otrc
6c6
< "clientId": "simu-Pixel",
---
> "clientId": "simu-PixelNop",
8c8
< "deviceId": "Pixel",
---
> "deviceId": "PixelNop",
27c27
< "pubTopicBase": "owntracks/simu/Pixel",
---
> "pubTopicBase": "owntracks/simu/PixelNop",
32,33c32,33
< "subTopic": "owntracks/+/+ owntracks/+/+/event owntracks/+/+/info owntracks/simu/Pixel/cmd",
< "tid": "p7",
---
> "subTopic": "owntracks/+/+ owntracks/+/+/event owntracks/+/+/info owntracks/simu/PixelNop/cmd",
> "tid": "p8",
simu
). Related to #17 Solved for .otrc
file downloads (user can select their devices) and for URLconfig
.
OwnTracks supports
username/devicename
, but during creation of quicksetup we assumed a user would have one device only.Test whether this is a problem. After reviewing the
mkpasswords
filter, i don't actually think so ...