mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 09:00:21 +01:00
wifi,clients/secret-agent: use defines for property names in secret hints
This commit is contained in:
parent
bd590579da
commit
472f89da6b
2 changed files with 2 additions and 2 deletions
|
|
@ -780,7 +780,7 @@ request_secrets_from_ui (RequestData *request)
|
|||
} else if (nm_connection_is_type (request->connection, NM_SETTING_GSM_SETTING_NAME)) {
|
||||
NMSettingGsm *s_gsm = nm_connection_get_setting_gsm (request->connection);
|
||||
|
||||
if (g_strv_contains (NM_CAST_STRV_CC (request->hints), "pin")) {
|
||||
if (g_strv_contains (NM_CAST_STRV_CC (request->hints), NM_SETTING_GSM_PIN)) {
|
||||
title = _("PIN code required");
|
||||
msg = g_strdup (_("PIN code is needed for the mobile broadband device"));
|
||||
|
||||
|
|
|
|||
|
|
@ -1894,7 +1894,7 @@ act_stage2_config (NMDevice *device, NMDeviceStateReason *out_failure_reason)
|
|||
TRUE,
|
||||
NM_SETTING_WIRELESS_SECURITY_SETTING_NAME,
|
||||
NM_SECRET_AGENT_GET_SECRETS_FLAG_ALLOW_INTERACTION,
|
||||
NM_MAKE_STRV ("psk"),
|
||||
NM_MAKE_STRV (NM_SETTING_WIRELESS_SECURITY_PSK),
|
||||
act_psk_cb,
|
||||
self);
|
||||
nm_device_state_changed (device, NM_DEVICE_STATE_NEED_AUTH, NM_DEVICE_STATE_REASON_NONE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue