public override void ReadXml(System.Xml.XmlElement element) { base.ReadXml(element); UseSocialLogin = false; //element.GetBoolAttribute ("useSocialLogin") ?? false; Address = element.GetStringAttribute("address"); if (UseSocialLogin) { JanrainAppName = element.GetStringAttribute("janrainAppName") ?? "jabbr"; UserId = JabbRApplication.Instance.DecryptString(Address, Id, element.GetStringAttribute("userId")); } else { UserName = JabbRApplication.Instance.DecryptString(Address, Id + "-user", element.GetStringAttribute("userName")); Password = JabbRApplication.Instance.DecryptString(Address, Id + "-pass", element.GetStringAttribute("password")); } }