Skip to content

Commit

Permalink
Updates saving passwords warning messages (#4052)
Browse files Browse the repository at this point in the history
to suggest using a authentication method
  • Loading branch information
SrNetoChan authored and NathanW2 committed Feb 1, 2017
1 parent b340f04 commit 11170ab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/qgsnewhttpconnection.cpp
Expand Up @@ -216,7 +216,7 @@ void QgsNewHttpConnection::accept()
if ( !txtPassword->text().isEmpty() &&
QMessageBox::question( this,
tr( "Saving passwords" ),
tr( "WARNING: You have entered a password. It will be stored in plain text in your project files and in your home directory on Unix-like systems, or in your user profile on Windows. If you do not want this to happen, please press the Cancel button.\nNote: Giving the password is optional. It will be requested interactively, when needed." ),
tr( "WARNING: You have entered a password. It will be stored in unsecured plain text in your project files and your home directory (Unix-like OS) or user profile (Windows). If you want to avoid this, press Cancel and either:\n\na) Don't provide a password in the connection settings — it will be requested interactively when needed;\nb) Use the Configuration tab to add your credentials in an HTTP Basic Authentication method and store them in an encrypted database." ),
QMessageBox::Ok | QMessageBox::Cancel ) == QMessageBox::Cancel )
{
return;
Expand Down
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspgnewconnection.cpp
Expand Up @@ -115,7 +115,7 @@ void QgsPgNewConnection::accept()
if ( !hasAuthConfigID && chkStorePassword->isChecked() &&
QMessageBox::question( this,
tr( "Saving passwords" ),
tr( "WARNING: You have opted to save your password. It will be stored in plain text in your project files and in your home directory on Unix-like systems, or in your user profile on Windows. If you do not want this to happen, please press the Cancel button.\n" ),
tr( "WARNING: You have opted to save your password. It will be stored in unsecured plain text in your project files and in your home directory (Unix-like OS) or user profile (Windows). If you want to avoid this, press Cancel and either:\n\na) Don't save a password in the connection settings — it will be requested interactively when needed;\nb) Use the Configuration tab to add your credentials in an HTTP Basic Authentication method and store them in an encrypted database." ),
QMessageBox::Ok | QMessageBox::Cancel ) == QMessageBox::Cancel )
{
return;
Expand Down

0 comments on commit 11170ab

Please sign in to comment.