From d665f21f11dce955f7b22f87201af8c59950922d Mon Sep 17 00:00:00 2001 From: xust Date: Mon, 22 Jul 2024 13:56:31 +0800 Subject: [PATCH] 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 --- .../dfmplugin-disk-encrypt-entry/events/eventshandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dde-file-manager/dfmplugin-disk-encrypt-entry/events/eventshandler.cpp b/src/dde-file-manager/dfmplugin-disk-encrypt-entry/events/eventshandler.cpp index eaf6941..306f454 100644 --- a/src/dde-file-manager/dfmplugin-disk-encrypt-entry/events/eventshandler.cpp +++ b/src/dde-file-manager/dfmplugin-disk-encrypt-entry/events/eventshandler.cpp @@ -362,7 +362,8 @@ bool EventsHandler::onAcquireDevicePwd(const QString &dev, QString *pwd, bool *c dialog_utils::showDialog(title, tr("Please use recovery key to unlock device."), dialog_utils::kInfo); - *cancelled = true; + + *pwd = acquirePassphraseByRec(dev, *cancelled); } return true;