important change to get register working again

This commit is contained in:
Dario 2020-03-16 17:50:56 +01:00
parent d76946aa15
commit dd5379fef6

View File

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