mirror of
https://github.com/linuxboot/heads.git
synced 2025-04-23 18:33:39 +00:00
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>