[PC-BSD Commits] r7883 - in pcbsd: current/src-qt4/pc-sysinstaller stable/SysInstaller

svn at pcbsd.org svn at pcbsd.org
Fri Oct 22 11:35:00 PDT 2010


Author: kris
Date: 2010-10-22 11:35:00 -0700 (Fri, 22 Oct 2010)
New Revision: 7883

Modified:
   pcbsd/current/src-qt4/pc-sysinstaller/dialogFileSystem.cpp
   pcbsd/stable/SysInstaller/dialogFileSystem.cpp
Log:

Added critical warning if passphrases do not match up



Modified: pcbsd/current/src-qt4/pc-sysinstaller/dialogFileSystem.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-sysinstaller/dialogFileSystem.cpp	2010-10-22 17:53:50 UTC (rev 7882)
+++ pcbsd/current/src-qt4/pc-sysinstaller/dialogFileSystem.cpp	2010-10-22 18:35:00 UTC (rev 7883)
@@ -92,6 +92,8 @@
      confirm = QInputDialog::getText(this, tr("Enter Passphrase (Confirm)"),
                                         tr("Confirm the Passphrase for this encrypted disk"), QLineEdit::Password,
                                         QString(), &ok);
+   if ( pass != confirm )
+	QMessageBox::critical(this, tr("Passphrase mismatch"), tr("The entered passphrases do not match!"));
 
    if ( ok && pass == confirm ) {
      encPhrase = pass;

Modified: pcbsd/stable/SysInstaller/dialogFileSystem.cpp
===================================================================
--- pcbsd/stable/SysInstaller/dialogFileSystem.cpp	2010-10-22 17:53:50 UTC (rev 7882)
+++ pcbsd/stable/SysInstaller/dialogFileSystem.cpp	2010-10-22 18:35:00 UTC (rev 7883)
@@ -91,6 +91,8 @@
      confirm = QInputDialog::getText(this, tr("Enter Passphrase (Confirm)"),
                                         tr("Confirm the Passphrase for this encrypted disk"), QLineEdit::Password,
                                         QString(), &ok);
+   if ( pass != confirm )
+        QMessageBox::critical(this, tr("Passphrase mismatch"), tr("The entered passphrases do not match!"));
 
    if ( ok && pass == confirm ) {
      encPhrase = pass;



More information about the Commits mailing list