mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-31 00:24:17 +00:00
1c6f623c25
After updating/flashing a new ROM, a new TOTP secret must be generated, but the $TOTP variable needs to be updated afterwards, otherwise it will show the previous failure which led to the new secret being created. Fix this by re-calling update_totp() after generating a new secret or resetting the TPM. Signed-off-by: Matt DeVillier <matt.devillier@puri.sm>