When installing id card, store password when one is specified
authorKevin Wasserman <krwasserman@hotmail.com>
Mon, 7 Oct 2013 19:42:30 +0000 (15:42 -0400)
committerSam Hartman <hartmans@painless-security.com>
Tue, 8 Oct 2013 13:08:07 +0000 (09:08 -0400)
src/moonshot-server.vala

index eb881d2..81fdccd 100644 (file)
@@ -141,6 +141,8 @@ public class MoonshotServer : Object {
       idcard.display_name = display_name;
       idcard.username = user_name;
       idcard.password = password;
+      if ((password != null) && (password != ""))
+        idcard.store_password = true;
       idcard.issuer = realm;
       idcard.services = services;
       idcard.trust_anchor.ca_cert = ca_cert;