Clear entire TinyDB when switching accounts. #578

Closed
opened 2020-07-06 23:47:06 +00:00 by opyale · 4 comments
Collaborator

This is important so that old and left over values do not possibly affect the functioning of another account.

This is important so that old and left over values do not possibly affect the functioning of another account.
opyale added the
🌠 Long-term
🔒 Security
labels 2020-07-06 23:47:06 +00:00
Poster
Collaborator

A method for this is already implemented in TinyDB.

/**
 * Clear SharedPreferences (remove everything)
 */
public void clear() {
    preferences.edit().clear().apply();
}

It only needs to be called in the logout() method.

A method for this is already implemented in ``TinyDB``. ``` /** * Clear SharedPreferences (remove everything) */ public void clear() { preferences.edit().clear().apply(); } ``` It only needs to be called in the ``logout()`` method.

We cant at this moment use this until all the data(e.g settings) are migrated to db for example.

Bdw what data would effect the functionality of the app in tinydb if remain there?

We cant at this moment use this until all the data(e.g settings) are migrated to db for example. Bdw what data would effect the functionality of the app in tinydb if remain there?

And I do use the app(testing) with multiple instances and multiple accounts and never came across a single issue so far except a token bug(came across recently) which will be handeled later with multiple accounts setup.

And I do use the app(testing) with multiple instances and multiple accounts and never came across a single issue so far except a token bug(came across recently) which will be handeled later with multiple accounts setup.
opyale added a new dependency 2021-04-07 22:03:53 +00:00
opyale added this to the Database-related work project 2021-06-17 17:28:21 +00:00
6543 added the
⚔️ Wontfix
label 2022-03-13 03:00:50 +00:00
Collaborator

-> #1034

we should just drop tinyDB if wa are at that point ...

-> #1034 we should just drop tinyDB if wa are at that point ...
6543 removed a dependency 2022-03-13 03:01:31 +00:00
6543 closed this issue 2022-03-13 03:01:36 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitnex/GitNex#578
There is no content yet.