mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-02 22:38:01 +00:00
libnmc/secret-agent-simple: advise if WPS PBC enrollment is active
Print a different message on "nmcli --ask d wifi connect" if WPS enrollment is in progress. This is the same as GNOME Shell's secret agent (and perhaps others) do. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1961
This commit is contained in:
parent
6de187cb37
commit
77c508c8e7
|
@ -907,9 +907,15 @@ request_secrets_from_ui(RequestData *request)
|
||||||
ssid_utf8 = nm_utils_ssid_to_utf8(g_bytes_get_data(ssid, NULL), g_bytes_get_size(ssid));
|
ssid_utf8 = nm_utils_ssid_to_utf8(g_bytes_get_data(ssid, NULL), g_bytes_get_size(ssid));
|
||||||
|
|
||||||
title = _("Authentication required by wireless network");
|
title = _("Authentication required by wireless network");
|
||||||
|
if (request->flags & NM_SECRET_AGENT_GET_SECRETS_FLAG_WPS_PBC_ACTIVE) {
|
||||||
|
msg = g_strdup_printf(_("Push of the WPS button on the router or a password is "
|
||||||
|
"required to access the wireless network '%s'."),
|
||||||
|
ssid_utf8);
|
||||||
|
} else {
|
||||||
msg = g_strdup_printf(
|
msg = g_strdup_printf(
|
||||||
_("Passwords or encryption keys are required to access the wireless network '%s'."),
|
_("Passwords or encryption keys are required to access the wireless network '%s'."),
|
||||||
ssid_utf8);
|
ssid_utf8);
|
||||||
|
}
|
||||||
|
|
||||||
if (!add_wireless_secrets(request, secrets))
|
if (!add_wireless_secrets(request, secrets))
|
||||||
goto out_fail;
|
goto out_fail;
|
||||||
|
|
Loading…
Reference in a new issue