Skip to content

Commit

Permalink
When a creating a new PG connection, use SSL prefer
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry authored and nyalldawson committed Dec 25, 2023
1 parent 5ccda64 commit 67acd16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/providers/postgres/qgspgnewconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ QgsPgNewConnection::QgsPgNewConnection( QWidget *parent, const QString &connName
cbxSSLmode->addItem( tr( "require" ), QgsDataSourceUri::SslRequire );
cbxSSLmode->addItem( tr( "verify-ca" ), QgsDataSourceUri::SslVerifyCa );
cbxSSLmode->addItem( tr( "verify-full" ), QgsDataSourceUri::SslVerifyFull );
cbxSSLmode->setCurrentIndex( cbxSSLmode->findData( QgsDataSourceUri::SslPrefer ) );

mAuthSettings->setDataprovider( QStringLiteral( "postgres" ) );
mAuthSettings->showStoreCheckboxes( true );
Expand Down

0 comments on commit 67acd16

Please sign in to comment.