nm: Explicitly prevent the smartcard PIN from being stored

The secret storage flag wasn't being saved when using smartcard
authentication, resulting in the PIN being stored.

Fixes #2166.
This commit is contained in:
Raphael Geissert
2017-05-08 15:29:37 +02:00
committed by Tobias Brunner
parent 8e1b986c10
commit a4b3f1454b
@@ -509,6 +509,8 @@ update_connection (NMVpnEditor *iface,
str = "agent";
break;
case 2:
nm_setting_set_secret_flags (NM_SETTING (settings), "password",
NM_SETTING_SECRET_FLAG_NOT_SAVED, NULL);
str = "smartcard";
break;
case 3: