change because lost of data possible

This commit is contained in:
Dario 2020-03-16 12:24:00 +01:00
parent 77aa0ebe09
commit d76946aa15

View File

@ -793,7 +793,8 @@ void Session::detectSessionState()
// check passphrase, only possible while passphrase isn't crypted in db
bool correctPassphraseFound = false;
bool cryptedPassphrase = false;
// always trigger SESSION_STATE_PASSPHRASE_WRITTEN, else lost of data possible
bool cryptedPassphrase = true;
for (auto it = userBackups.begin(); it != userBackups.end(); it++) {
KeyPair keys;
auto passphrase = (*it)->getModel()->getPassphrase();