Skip to content
Permalink
Browse files

Updates saving passwords warning messages (#4052)

to suggest using a authentication method
  • Loading branch information
SrNetoChan authored and NathanW2 committed Feb 1, 2017
1 parent b340f04 commit 11170ab26302dbf4007db299e0d71e2b6d0470f9
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/gui/qgsnewhttpconnection.cpp
  2. +1 −1 src/providers/postgres/qgspgnewconnection.cpp
@@ -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;
@@ -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;

0 comments on commit 11170ab

Please sign in to comment.
You can’t perform that action at this time.