Esempio n. 1
0
        public static MatchAccuracyMethod GetMatchAccuracyMethod(this PwEntry entry, URLSummary urlsum, DatabaseConfig dbConf)
        {
            var conf = entry.GetKPRPCConfig(MatchAccuracyMethod.Domain);
            MatchAccuracyMethod overridenMethod;

            if (urlsum.Domain != null && urlsum.Domain.RegistrableDomain != null && dbConf.MatchedURLAccuracyOverrides.TryGetValue(urlsum.Domain.RegistrableDomain, out overridenMethod))
            {
                return(overridenMethod);
            }
            else
            {
                return(conf.GetMatchAccuracyMethod());
            }
        }
Esempio n. 2
0
 public static void SetKPRPCConfig(this PwDatabase db, DatabaseConfig newConfig)
 {
     db.CustomData.Set("KeePassRPC.Config", Jayrock.Json.Conversion.JsonConvert.ExportToString(newConfig));
 }