Skip to content

Commit 11170ab

Browse files
SrNetoChanNathanW2
authored andcommitted
Updates saving passwords warning messages (#4052)
to suggest using a authentication method
1 parent b340f04 commit 11170ab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/gui/qgsnewhttpconnection.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ void QgsNewHttpConnection::accept()
216216
if ( !txtPassword->text().isEmpty() &&
217217
QMessageBox::question( this,
218218
tr( "Saving passwords" ),
219-
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." ),
219+
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." ),
220220
QMessageBox::Ok | QMessageBox::Cancel ) == QMessageBox::Cancel )
221221
{
222222
return;

src/providers/postgres/qgspgnewconnection.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void QgsPgNewConnection::accept()
115115
if ( !hasAuthConfigID && chkStorePassword->isChecked() &&
116116
QMessageBox::question( this,
117117
tr( "Saving passwords" ),
118-
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" ),
118+
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." ),
119119
QMessageBox::Ok | QMessageBox::Cancel ) == QMessageBox::Cancel )
120120
{
121121
return;

0 commit comments

Comments
 (0)