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:
egglessness 2024-01-06 19:53:18 +01:00 committed by Jonathan White
parent d14821fb16
commit 8c91836038
No known key found for this signature in database
GPG key ID: 440FC65F2E0C6E01
10 changed files with 67 additions and 1 deletions

View file

@ -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();