Fix Remote Wipe keychain storage
authorMichael Schuster <michael@schuster.ms>
Sat, 7 Dec 2019 23:02:11 +0000 (00:02 +0100)
committerMichael Schuster <48932272+misch7@users.noreply.github.com>
Sun, 8 Dec 2019 01:47:22 +0000 (02:47 +0100)
commit6a49e787bb973750bb1ba54b5f8090ebf7ea3672
tree34fa3462dad89413a4dfefb2555613a8fdea45b8
parent0c5f4a15251c64848f3ab1071f8b10c9cb9ad651
Fix Remote Wipe keychain storage

In certain cases don't write the app password in Account::writeAppPasswordOnce:
- id() is empty: This always happend once the Account Wizard showed the folder selection
- appPassword is empty: Caused by Logout -> Relaunch, preventing remote wipe on relaunch

Implement some logging to ease debugging in the future.

Signed-off-by: Michael Schuster <michael@schuster.ms>
src/libsync/account.cpp