mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-14 09:16:21 -04:00
add default charset when not specified
explicitly state the wordcount default value
This commit is contained in:
parent
e9612ee9e6
commit
e57a2e0fa9
7 changed files with 16 additions and 12 deletions
|
@ -133,8 +133,7 @@ int Add::execute(QStringList arguments)
|
|||
passwordGenerator.setLength(passwordLength.toInt());
|
||||
}
|
||||
|
||||
passwordGenerator.setCharClasses(PasswordGenerator::LowerLetters | PasswordGenerator::UpperLetters |
|
||||
PasswordGenerator::Numbers);
|
||||
passwordGenerator.setCharClasses(PasswordGenerator::DefaultCharset);
|
||||
QString password = passwordGenerator.generatePassword();
|
||||
entry->setPassword(password);
|
||||
}
|
||||
|
|
|
@ -149,8 +149,7 @@ int Edit::execute(QStringList arguments)
|
|||
passwordGenerator.setLength(passwordLength.toInt());
|
||||
}
|
||||
|
||||
passwordGenerator.setCharClasses(PasswordGenerator::LowerLetters | PasswordGenerator::UpperLetters |
|
||||
PasswordGenerator::Numbers);
|
||||
passwordGenerator.setCharClasses(PasswordGenerator::DefaultCharset);
|
||||
QString password = passwordGenerator.generatePassword();
|
||||
entry->setPassword(password);
|
||||
}
|
||||
|
|
|
@ -96,12 +96,7 @@ int PassGen::execute(QStringList arguments)
|
|||
classes |= PasswordGenerator::EASCII;
|
||||
}
|
||||
|
||||
if (classes == 0x0) {
|
||||
passwordGenerator.setCharClasses(PasswordGenerator::LowerLetters | PasswordGenerator::UpperLetters |
|
||||
PasswordGenerator::Numbers);
|
||||
} else {
|
||||
passwordGenerator.setCharClasses(classes);
|
||||
}
|
||||
passwordGenerator.setCharClasses(classes);
|
||||
|
||||
if (!passwordGenerator.isValid()) {
|
||||
outputTextStream << parser.helpText().replace("keepassxc-cli", "keepassxc-cli passgen");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue