enketo-express
enketo-express copied to clipboard
purge form from browser db during logout
Use case:
- user A loads offline-capable form, enters data, submits et
- user A logs out
- user B works on same device/browser, and opens form
expected: login screen experienced: it loads the form (from the cache, and soon after receives a 401 so submitting is not possible
- Only after user B reloads again (after the 401 was received in the previous session), is the login screen shown.
- [ ] A pragmatic, easy, and I think good solution would be to purge the form during logout.
However, this use case brings up another issue. What should we do with any draft/final records that are present in the browser db at the time user A logs out?
- [ ] do something with records during logout - tbc
pie in the sky: separate storage per user, possibly encrypted with the user's password :wink:
Wow. :D :pie:
If anybody ever wants to implement that she/he/they may want to consider the other supported types of authentication as well (Central will not be using password/username, and neither do Ona and OpenClinica).