Exemplo n.º 1
0
        public SSOResponse UserLoginAct(string UserName, string PWD, string LoginTicket, string RedirectUrl)
        {
            UserInfo    User     = CurrentUser.UserLoginAct(UserName, PWD, LoginTicket);
            SSOResponse response = new SSOResponse();

            if (User != null)
            {
                response.IsValid  = true;
                response.UserInfo = User;
            }
            return(response);
        }
Exemplo n.º 2
0
        public SSOResponse GetTicketUser(string UserName, string LoginTicket)
        {
            SSOResponse response1 = new SSOResponse();
            UserInfo    User      = CurrentUser.UserLoginAct(UserName, "", LoginTicket);
            SSOResponse response  = new SSOResponse();

            if (User != null)
            {
                response.IsValid   = true;
                response.SSOScript = EyouSoft.Common.SerializationHelper.ConvertJSON <UserInfo>(User);
                response.UserInfo  = User;
            }
            return(response);
        }