首页新闻找找看学习计划

看此代码求解释!

0
[已解决问题] 解决于 2012-09-24 14:01

 public class login : IHttpHandler
    {
        public void ProcessRequest(HttpContext context)
        {
            //验证用户名密码
            string loginName = context.Request.Form["loginName"];
            base64 b6 = new base64();
            string password = b6.decodeBase64(context.Request.Form["password"]);

            loginReturn lr = new loginReturn();

            int userId = SSO.Operate.ValidateUserInfo(loginName, password);
            if (userId > 0)
            {
                SSORequest ssorequest = new SSORequest();
                //获取用户Model,并将相应的值赋给SSORequest
                if (Authentication.CreateAppToken(ssorequest))
                {
                    lr.userId = userId;
                    lr.AA_Token = ssorequest.AA_Token;
                    context.Response.Write(JsonHelper.JsonSerializer(lr));
                }
            }
            lr.userId = -1;
            lr.AA_Token = "";
            context.Response.Write(JsonHelper.JsonSerializer(lr));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}

问题补充:

有木有人耶!

水嫩小白菜的主页 水嫩小白菜 | 初学一级 | 园豆:3
提问于:2012-09-22 10:16
< >
分享
最佳答案
0

你哪些地方看不懂?

奖励园豆:5
artwl | 专家六级 |园豆:16526 | 2012-09-22 10:50

你给解释下 方便的话加个QQ!

水嫩小白菜 | 园豆:3 (初学一级) | 2012-09-22 10:56
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册