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));
}
( ⊙ o ⊙ )啊!不明白具体要实现什么东东哦。
能加个企鹅给你说下么!