From d9e5c4e63aca60cb5c8cc8a4fdd03a4989e5b9cd Mon Sep 17 00:00:00 2001 From: Tomas Ebenlendr Date: Fri, 5 Jan 2024 15:43:15 +0100 Subject: [PATCH] nmtui: 802.1x: make anonymous identity optional Anonymous identity may be left blank. Identity (username) field is then used. --- src/nmtui/nmt-8021x-fields.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nmtui/nmt-8021x-fields.c b/src/nmtui/nmt-8021x-fields.c index a323be62d7..180ca2797f 100644 --- a/src/nmtui/nmt-8021x-fields.c +++ b/src/nmtui/nmt-8021x-fields.c @@ -297,7 +297,7 @@ eap_method_populate_ttls(EapMethod *method, NmtNewtWidget *subgrid) {N_("GTC"), "eap-gtc"}, {NULL, NULL}}; - widget = nmt_newt_entry_new(40, NMT_NEWT_ENTRY_NONEMPTY); + widget = nmt_newt_entry_new(40, 0); nmt_editor_grid_append(NMT_EDITOR_GRID(subgrid), _("Anonymous identity"), widget, NULL); g_object_bind_property(method->setting, NM_SETTING_802_1X_ANONYMOUS_IDENTITY, @@ -386,7 +386,7 @@ eap_method_populate_peap(EapMethod *method, NmtNewtWidget *subgrid) {N_("GTC"), "gtc"}, {NULL, NULL}}; - widget = nmt_newt_entry_new(40, NMT_NEWT_ENTRY_NONEMPTY); + widget = nmt_newt_entry_new(40, 0); nmt_editor_grid_append(NMT_EDITOR_GRID(subgrid), _("Anonymous identity"), widget, NULL); g_object_bind_property(method->setting, NM_SETTING_802_1X_ANONYMOUS_IDENTITY,