mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Add configurable password strength check on database password (#9782)
* Set default value of DatabasePasswordMinimumQuality to 3 (do not accept a master password that is less than Good) * Add custom message box button "Continue with weak password"
This commit is contained in:
@@ -286,7 +286,10 @@ void TestGui::testCreateDatabase()
|
||||
tmpFile.close();
|
||||
fileDialog()->setNextFileName(tmpFile.fileName());
|
||||
|
||||
// click Continue on the warning due to weak password
|
||||
MessageBox::setNextAnswer(MessageBox::ContinueWithWeakPass);
|
||||
QTest::keyClick(fileEdit, Qt::Key::Key_Enter);
|
||||
|
||||
tmpFile.remove(););
|
||||
|
||||
triggerAction("actionDatabaseNew");
|
||||
|
||||
@@ -1879,6 +1879,8 @@ bool TestGuiFdoSecrets::driveNewDatabaseWizard()
|
||||
tmpFile.close();
|
||||
fileDialog()->setNextFileName(tmpFile.fileName());
|
||||
|
||||
// click Continue on the warning due to weak password
|
||||
MessageBox::setNextAnswer(MessageBox::ContinueWithWeakPass);
|
||||
wizard->accept();
|
||||
|
||||
tmpFile.remove();
|
||||
|
||||
Reference in New Issue
Block a user