Esempio n. 1
0
        private KeyLoginResponce LoginUser(string username, string password, string targetService)
        {
            if (targetService == null)
            {
                targetService = "";
            }
            KeyLoginResponce rtn = new KeyLoginResponce();

            rtn.LoginSuccess = false;
            KeyAuthentication objKey = new KeyAuthentication(username, password, targetService);

            if (!String.IsNullOrEmpty(objKey.KeyGuid))
            {
                rtn.LoginSuccess = true;
                rtn.GUID         = objKey.KeyGuid;
                rtn.ProxyTicket  = objKey.ProxyTicket;
            }
            return(rtn);
        }
 private KeyLoginResponce LoginUser(string username, string password, string targetService)
 {
     if (targetService == null) targetService = "";
     KeyLoginResponce rtn = new KeyLoginResponce();
     rtn.LoginSuccess = false;
     KeyAuthentication objKey = new KeyAuthentication(username, password, targetService);
     if (!String.IsNullOrEmpty(objKey.KeyGuid))
     {
         rtn.LoginSuccess = true;
         rtn.GUID = objKey.KeyGuid;
         rtn.ProxyTicket = objKey.ProxyTicket;
     }
     return rtn;
 }