public string AuthenticateUser(IAuthPackage authPackage) { DataForm df = new DataForm(); df.SetValue("LoginName", authPackage.LoginName); df.SetValue("Password", authPackage.Password); string sid = USServiceClient.CreateUserState(df.ToString(), string.Empty, string.Empty, string.Empty, string.Empty); if (!String.IsNullOrEmpty(sid) && sid.Length >= 30) { SetAuthenticationTicket(sid, authPackage.LoginName); } return(sid); }