Skip to content

Commit

Permalink
Add user facing warning if password cannot be verified
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 5, 2025
1 parent 893d135 commit dc20991
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/auth/qgsauthmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,10 @@ bool QgsAuthManager::createAndStoreRandomMasterPasswordInKeyChain()
}

if ( !verifyMasterPassword() )
{
emit passwordHelperMessageLog( tr( "Master password was written to the %1 but could not be verified" ).arg( AUTH_PASSWORD_HELPER_DISPLAY_NAME ), authManTag(), Qgis::MessageLevel::Warning );
return false;
}

QgsDebugMsgLevel( QStringLiteral( "Master password is set and verified" ), 2 );
return true;
Expand Down

0 comments on commit dc20991

Please sign in to comment.