Skip to content

Commit

Permalink
[postgres] Fix settings username/password storage
Browse files Browse the repository at this point in the history
Fix #57284
  • Loading branch information
elpaso committed May 23, 2024
1 parent 53e5b34 commit 8e68b96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/providers/postgres/qgspgnewconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ void QgsPgNewConnection::accept()
settings.setValue( baseKey + "/password", mAuthSettings->storePasswordIsChecked( ) && !hasAuthConfigID ? mAuthSettings->password() : QString() );
settings.setValue( baseKey + "/authcfg", mAuthSettings->configId() );
settings.setValue( baseKey + "/sslmode", cbxSSLmode->currentData().toInt() );
settings.setValue( baseKey + "/saveUsername", mAuthSettings->storeUsernameIsChecked( ) ? "true" : "false" );
settings.setValue( baseKey + "/savePassword", mAuthSettings->storePasswordIsChecked( ) ? "true" : "false" );

// remove old save setting
settings.remove( baseKey + "/save" );
Expand Down

0 comments on commit 8e68b96

Please sign in to comment.