Skip to content
This repository has been archived by the owner on Sep 15, 2022. It is now read-only.

Commit

Permalink
Don't prompt the user for a password if they're using a client certif…
Browse files Browse the repository at this point in the history
…icate.

Conflicts:
	pgadmin/schema/pgServer.cpp
  • Loading branch information
dpage committed May 17, 2013
1 parent 5e733e3 commit f20fe6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG
Expand Up @@ -37,6 +37,8 @@ Changes

Date Dev Ver Change details
---------- --- ------ --------------
2013-05-17 DP 1.16.2 Don't prompt the user for a password if they're using
a client certificate.
2013-05-17 DP 1.16.2 Ensure global backups use the mintenance database to
avoid access issue with postgres or template1.
2013-05-17 DP 1.16.2 Fix SSL certificate authentication.
Expand Down
2 changes: 1 addition & 1 deletion pgadmin/schema/pgServer.cpp
Expand Up @@ -626,7 +626,7 @@ int pgServer::Connect(frmMain *form, bool askPassword, const wxString &pwd, bool
}
if (askPassword)
{
if (!passwordValid || !GetPasswordIsStored() || !GetStorePwd())
if ((!passwordValid || !GetPasswordIsStored() || !GetStorePwd()) && GetSSLCert() == wxEmptyString)
{
wxString txt;
txt.Printf(_("Please enter password for user %s\non server %s (%s)"), username.c_str(), description.c_str(), GetName().c_str());
Expand Down

0 comments on commit f20fe6e

Please sign in to comment.