0x0ece / yopa-native

0 stars 2 forks source link

Import should delete the secure store #81

Closed 0x0ece closed 6 years ago

0x0ece commented 6 years ago

When we import, ideally after having downloaded successfully the file but before storing it to the filesystem, we should delete all data from the secure store, i.e. all groups passphrases.

We can centralize (e.g. in Utils) and reuse the same piece of code that does that in Settings > Erase master passwords.

In a v2, we can go a bit further. Some groups imported may be the same, and have the same password, as the current groups -- however this requires more logic, so I'd skip it for now. A side effect of importing will be that the next unlock will require the password, but that's safe and will be re-added to the secure store, thus re-enabling fingerprint.