Skip to content

Commit

Permalink
fix: [unlock] use rec-key to unlock device.
Browse files Browse the repository at this point in the history
when decrypt string from TPM failed, use recovery key to unlock device.

Log: as title.

Bug: https://pms.uniontech.com/bug-view-265033.html
  • Loading branch information
itsXuSt authored and deepin-bot[bot] committed Jul 22, 2024
1 parent d30e93b commit d665f21
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d665f21

Please sign in to comment.