gui-init: move Refresh TOTP/HOTP to the Main Boot Menu

also, rename the current menu entry to being smaller and simpler.

Closes #574
This commit is contained in:
Martin Kepplinger 2019-05-26 19:00:41 +02:00 committed by Martin Kepplinger
parent e203de9669
commit 186895d414

View File

@ -174,6 +174,7 @@ while true; do
whiptail $MAIN_MENU_BG_COLOR --clear --title "$CONFIG_BOOT_GUI_MENU_NAME" \
--menu "$date\nTOTP: $TOTP | HOTP: $HOTP" 20 90 10 \
'y' ' Default boot' \
'r' ' Refresh TOTP/HOTP' \
'a' ' Settings -->' \
'P' ' Power Off' \
2>/tmp/whiptail || recovery "GUI menu failed"
@ -214,7 +215,6 @@ while true; do
--menu "Select An Option" 20 90 10 \
'g' ' Generate new TOTP/HOTP secret' \
'p' ' Reset the TPM' \
'r' ' TOTP/HOTP does not match, refresh code' \
'n' ' TOTP/HOTP does not match after refresh, troubleshoot' \
'r' ' <-- Return to main menu' \
2>/tmp/whiptail || recovery "GUI menu failed"