-
-
Notifications
You must be signed in to change notification settings - Fork 170
Drafts not cleared on logout #334
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Drafts are stored in the web browser's local storage. However, they are not cleared when the user logs out. As a result, someone other than the legitimate user of Flatnotes may access them.
When FLATNOTES_AUTH_TYPE is password unauthorized access to notes is contrary to user expectations. To make matters worse, several drafts can be stored locally at any given time.
How to reproduce:
- Confirm that
FLATNOTES_AUTH_TYPEispassword,FLATNOTES_USERNAMEandFLATNOTES_PASSWORDare defined. - Log into Flatnotes and start a new note.
- Leave the title empty and type "This is a private note" in the note's body.
- Go to Menu > Log Out.
- Observe that the browser's local storage contains the note's body from step 3. (See screenshot)
Expected results:
After step 4 there are no drafts saved in local storage.
Actual results:
Drafts persist after logout, allowing anyone without knowledge of the password to view them.

Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working