Skip to content

Commit d665f21

Browse files
itsXuStdeepin-bot[bot]
authored andcommitted
fix: [unlock] use rec-key to unlock device.
when decrypt string from TPM failed, use recovery key to unlock device. Log: as title. Bug: https://pms.uniontech.com/bug-view-265033.html
1 parent d30e93b commit d665f21

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/dde-file-manager/dfmplugin-disk-encrypt-entry/events/eventshandler.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,8 @@ bool EventsHandler::onAcquireDevicePwd(const QString &dev, QString *pwd, bool *c
362362

363363
dialog_utils::showDialog(title, tr("Please use recovery key to unlock device."),
364364
dialog_utils::kInfo);
365-
*cancelled = true;
365+
366+
*pwd = acquirePassphraseByRec(dev, *cancelled);
366367
}
367368

368369
return true;

0 commit comments

Comments
 (0)