mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
Fix changing the password when the password manager is not available
Leaving the state in NoKeychainBackend would break any further attempt to get the password because CredentialStore::canTryAgain would return false.
This commit is contained in:
parent
60f1c65a48
commit
969757199e
1 changed files with 1 additions and 1 deletions
|
@ -360,9 +360,9 @@ void CredentialStore::slotKeyChainWriteFinished( QKeychain::Job *job )
|
|||
qDebug() << "Error with keychain: " << pwdJob->errorString();
|
||||
if( err == NoBackendAvailable || err == NotImplemented ||
|
||||
pwdJob->errorString().contains(QLatin1String("Could not open wallet"))) {
|
||||
_state = NoKeychainBackend;
|
||||
_type = Settings;
|
||||
saveCredentials();
|
||||
_state = NoKeychainBackend;
|
||||
} else {
|
||||
_state = Error;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue