ui/ncurses: Add nc-auth and authenticate when required.
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Wed, 20 Jun 2018 00:45:56 +0000 (10:45 +1000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Mon, 3 Dec 2018 03:48:41 +0000 (14:48 +1100)
commit07f6db7fc29a93fae3213af18371cccb17e0276a
treee6306f75ae6cb0e863d9c096d0a7a56140657634
parent9011b958364f2af965a33681e7375f079ba75d02
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>
13 files changed:
ui/ncurses/Makefile.am
ui/ncurses/nc-add-url.c
ui/ncurses/nc-auth.c [new file with mode: 0644]
ui/ncurses/nc-auth.h [new file with mode: 0644]
ui/ncurses/nc-config.c
ui/ncurses/nc-cui.c
ui/ncurses/nc-cui.h
ui/ncurses/nc-lang.c
ui/ncurses/nc-plugin.c
ui/ncurses/nc-plugin.h
ui/ncurses/nc-scr.h
ui/ncurses/nc-widgets.c
ui/ncurses/nc-widgets.h