mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-23 05:25:21 -04:00
Dynamically determine database validity
* Check that the database composite key exists, has sub-keys associated with it, and the root group exists.
This commit is contained in:
parent
7ac292e09b
commit
91c6e436b3
8 changed files with 14 additions and 49 deletions
|
@ -121,7 +121,6 @@ int Create::execute(const QStringList& arguments)
|
|||
|
||||
QSharedPointer<Database> db(new Database);
|
||||
db->setKey(key);
|
||||
db->setInitialized(true);
|
||||
|
||||
if (decryptionTime != 0) {
|
||||
auto kdf = db->kdf();
|
||||
|
|
|
@ -84,7 +84,6 @@ int Import::execute(const QStringList& arguments)
|
|||
Database db;
|
||||
db.setKdf(KeePass2::uuidToKdf(KeePass2::KDF_ARGON2));
|
||||
db.setKey(key);
|
||||
db.setInitialized(true);
|
||||
|
||||
if (!db.import(xmlExportPath, &errorMessage)) {
|
||||
errorTextStream << QObject::tr("Unable to import XML database: %1").arg(errorMessage) << endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue