enketo-express icon indicating copy to clipboard operation
enketo-express copied to clipboard

purge form from browser db during logout

Open MartijnR opened this issue 4 years ago • 2 comments

Use case:

  1. user A loads offline-capable form, enters data, submits et
  2. user A logs out
  3. 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

  1. 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

MartijnR avatar May 29 '20 19:05 MartijnR

pie in the sky: separate storage per user, possibly encrypted with the user's password :wink:

jnm avatar Jun 23 '20 23:06 jnm

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).

MartijnR avatar Jun 24 '20 00:06 MartijnR