summaryrefslogtreecommitdiffstats
path: root/ui/ncurses/nc-scr.h
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-06-20 10:45:56 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-12-03 14:48:41 +1100
commit07f6db7fc29a93fae3213af18371cccb17e0276a (patch)
treee6306f75ae6cb0e863d9c096d0a7a56140657634 /ui/ncurses/nc-scr.h
parent9011b958364f2af965a33681e7375f079ba75d02 (diff)
downloadtalos-petitboot-07f6db7fc29a93fae3213af18371cccb17e0276a.tar.gz
talos-petitboot-07f6db7fc29a93fae3213af18371cccb17e0276a.zip
ui/ncurses: Add nc-auth and authenticate when required.
When the user tries to perform actions that require authentication a new subscreen 'nc-auth' is launched which accepts a password and will send an authentication request before performing the action. This also adds a button in nc-config which launches an nc-auth screen allowing the user to set or change the system password. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'ui/ncurses/nc-scr.h')
-rw-r--r--ui/ncurses/nc-scr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/ncurses/nc-scr.h b/ui/ncurses/nc-scr.h
index 5671a6b..9f46f99 100644
--- a/ui/ncurses/nc-scr.h
+++ b/ui/ncurses/nc-scr.h
@@ -50,6 +50,7 @@ enum pb_nc_sig {
pb_add_url_screen_sig = 888,
pb_subset_screen_sig = 101,
pb_plugin_screen_sig = 202,
+ pb_auth_screen_sig = 303,
pb_removed_sig = -999,
};
OpenPOWER on IntegriCloud