mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-20 05:28:08 +00:00
gui-init: Fix spelling of generate_totp_hotp()
Signed-off-by: Jonathon Hall <jonathon.hall@puri.sm>
This commit is contained in:
parent
a0272270fe
commit
ff481b98fb
@ -148,10 +148,10 @@ prompt_update_checksums()
|
||||
fi
|
||||
}
|
||||
|
||||
generate_totp_htop()
|
||||
generate_totp_hotp()
|
||||
{
|
||||
tpm_password="$1" # May be empty, will prompt if needed and empty
|
||||
TRACE "Under /bin/gui-init:generate_totp_htop"
|
||||
TRACE "Under /bin/gui-init:generate_totp_hotp"
|
||||
echo "Scan the QR code to add the new TOTP secret"
|
||||
if /bin/seal-totp "$BOARD_NAME" "$tpm_password"; then
|
||||
if [ -x /bin/hotp_verification ]; then
|
||||
@ -208,7 +208,7 @@ update_totp()
|
||||
g )
|
||||
if (whiptail $BG_COLOR_WARNING --title 'Generate new TOTP/HOTP secret' \
|
||||
--yesno "This will erase your old secret and replace it with a new one!\n\nDo you want to proceed?" 0 80) then
|
||||
generate_totp_htop && update_totp && BG_COLOR_MAIN_MENU=""
|
||||
generate_totp_hotp && update_totp && BG_COLOR_MAIN_MENU=""
|
||||
fi
|
||||
;;
|
||||
i )
|
||||
@ -480,7 +480,7 @@ show_tpm_totp_hotp_options_menu()
|
||||
option=$(cat /tmp/whiptail)
|
||||
case "$option" in
|
||||
g )
|
||||
generate_totp_htop
|
||||
generate_totp_hotp
|
||||
;;
|
||||
r )
|
||||
reset_tpm
|
||||
@ -562,7 +562,7 @@ reset_tpm()
|
||||
|| die "Unable to create rollback file"
|
||||
mount -o ro,remount /boot
|
||||
|
||||
generate_totp_htop "$key_password"
|
||||
generate_totp_hotp "$key_password"
|
||||
else
|
||||
echo "Returning to the main menu"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user