Skip to content

Commit

Permalink
More fine-grained error reporting
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 7, 2025
1 parent e2c8a01 commit e24fe33
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/auth/qgsauthmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,12 @@ bool QgsAuthManager::resetMasterPasswordUsingStoredPasswordHelper( const QString

bool readOk = false;
const QString existingPassword = passwordHelperRead( readOk );
if ( !readOk )
{
emit passwordHelperMessageLog( tr( "Master password could not be read from the %1" ).arg( passwordHelperDisplayName() ), authManTag(), Qgis::MessageLevel::Warning );
return false;
}

return resetMasterPassword( newPassword, existingPassword, keepBackup, backupPath );
}

Expand Down

0 comments on commit e24fe33

Please sign in to comment.