Skip to content
Permalink
Browse files
add clear text password warning (fixes #5959)
  • Loading branch information
jef-n committed Jul 8, 2012
1 parent 299857e commit 81abf7fbc01c8803976455b05bb8485d6c3cc2ff
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/gui/qgsnewhttpconnection.cpp
@@ -111,6 +111,15 @@ void QgsNewHttpConnection::accept()
return;
}

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 interactivly, when needed." ),
QMessageBox::Ok | QMessageBox::Cancel ) == QMessageBox::Cancel )
{
return;
}

// on rename delete original entry first
if ( !mOriginalConnName.isNull() && mOriginalConnName != key )
{

0 comments on commit 81abf7f

Please sign in to comment.