mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
CredentialStore: Fix off-by-one
This commit is contained in:
parent
f20db6bbc1
commit
cab503bb2b
@ -84,7 +84,7 @@ void CredentialStore::fetchCredentials()
|
||||
MirallConfigFile cfgFile;
|
||||
MirallConfigFile::CredentialType t;
|
||||
|
||||
if( _tries++ == 3 ) {
|
||||
if( ++_tries == 3 ) {
|
||||
qDebug() << "Too many attempts to enter password!";
|
||||
_state = TooManyAttempts;
|
||||
return;
|
||||
@ -117,7 +117,6 @@ void CredentialStore::fetchCredentials()
|
||||
break;
|
||||
}
|
||||
case MirallConfigFile::KeyChain: {
|
||||
/* Qt Keychain is not yet implemented. */
|
||||
#ifdef WITH_QTKEYCHAIN
|
||||
_state = AsyncFetching;
|
||||
if( !_user.isEmpty() ) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user