Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/keepassxreboot/keepassxc.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenedikt Rascher-Friesenhausen <benediktrascherfriesenhausen+git@gmail.com>2019-11-16 19:51:56 +0300
committerJonathan White <support@dmapps.us>2020-03-10 06:35:55 +0300
commitb2c2f42f302667143b863dfb87c152285a80ae92 (patch)
tree614b8bf5d3332d53cfd185399a15046768453052 /tests/TestPasswordGenerator.h
parentdce9af219fe906f2fc20e134bf7ee07c1ea51b32 (diff)
Allow defining additional characters for the password generator
See issue #3271 for a motivation of this feature. This patch adds an additional text input to the advanced view of the password generator. All characters of this input field (if not empty) will be added as another group to the password generator. The characters from the excluded field have precedence over the characters from this new field, meaning any character added to both fields will *not* appear in any generated password. As the characters from this new field will be added as their own group to the password generator, checking the 'Include characters from every group' checkbox will force at least character to be chosen from the new input field. The `PasswordGenerator` class has also been changed so that the `isValid` method returns `true` if only characters from the new input field would be used. There is a new, simple test that covers the new feature. While the test only uses ASCII characters, any Unicode characters can be used with the new feature.
Diffstat (limited to 'tests/TestPasswordGenerator.h')
-rw-r--r--tests/TestPasswordGenerator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/TestPasswordGenerator.h b/tests/TestPasswordGenerator.h
index 56c4d65a1..454d16e06 100644
--- a/tests/TestPasswordGenerator.h
+++ b/tests/TestPasswordGenerator.h
@@ -26,6 +26,7 @@ class TestPasswordGenerator : public QObject
private slots:
void initTestCase();
+ void testAdditionalChars();
void testCharClasses();
void testLookalikeExclusion();
};