diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-06-20 10:45:56 +1000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-12-03 14:48:41 +1100 |
commit | 07f6db7fc29a93fae3213af18371cccb17e0276a (patch) | |
tree | e6306f75ae6cb0e863d9c096d0a7a56140657634 /ui/ncurses/nc-widgets.h | |
parent | 9011b958364f2af965a33681e7375f079ba75d02 (diff) | |
download | talos-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-widgets.h')
-rw-r--r-- | ui/ncurses/nc-widgets.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/ncurses/nc-widgets.h b/ui/ncurses/nc-widgets.h index a946c4f..ce3b038 100644 --- a/ui/ncurses/nc-widgets.h +++ b/ui/ncurses/nc-widgets.h @@ -16,6 +16,7 @@ */ #ifndef NC_WIDGETS_H +#define NC_WIDGETS_H struct nc_widgetset; struct nc_widget_label; @@ -27,6 +28,8 @@ struct nc_widget_label *widget_new_label(struct nc_widgetset *set, int y, int x, char *str); struct nc_widget_checkbox *widget_new_checkbox(struct nc_widgetset *set, int y, int x, bool checked); +struct nc_widget_textbox *widget_new_textbox_hidden(struct nc_widgetset *set, + int y, int x, int len, char *str, bool hide_input); struct nc_widget_textbox *widget_new_textbox(struct nc_widgetset *set, int y, int x, int len, char *str); struct nc_widget_subset *widget_new_subset(struct nc_widgetset *set, |