version 0.3.2
[fms.git] / src / http / pages / createidentitypage.cpp
index 165b22d..8a65914 100644 (file)
@@ -27,6 +27,9 @@ const std::string CreateIdentityPage::GeneratePage(const std::string &method, co
                st.Bind(1,Poco::DateTimeFormatter::format(date,"%Y-%m-%d %H:%M:%S"));\r
                st.Step();\r
 \r
+               // insert all identities not in trust list already\r
+               m_db->Execute("INSERT INTO tblIdentityTrust(LocalIdentityID,IdentityID) SELECT LocalIdentityID,IdentityID FROM tblLocalIdentity,tblIdentity WHERE LocalIdentityID || '_' || IdentityID NOT IN (SELECT LocalIdentityID || '_' || IdentityID FROM tblIdentityTrust);");\r
+\r
                content+="<h2>Created Identity</h2>";\r
        }\r
        else\r