DotNet.UserCenter/ChangePassword.ashx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//-----------------------------------------------------------------------
// <copyright file="ChangePassword.ashx" company="Hairihan">
// Copyright (c) 2014 , All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
using System;
using System.Web;
using System.Web.Script.Serialization;
namespace DotNet.UserCenter
{
using DotNet.Business;
using DotNet.Utilities;
/// <summary>
/// ChangePassword
/// 修改密码
///
/// 修改纪录
///
/// 2014-01-16 版本:2.0 JiRiGaLa 程序有错误结构,那就马上返回错误信息。
/// 2014-01-06 版本:1.0 JiRiGaLa 创建。
///
/// <author>
/// <name>JiRiGaLa</name>
/// <date>2014-01-16</date>
/// </author>
/// </summary>
public class ChangePassword : IHttpHandler
{
[Serializable]
class FunctionResult
{
public bool Result = false;
public string Message = string.Empty;
}
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
// 执行序列化
FunctionResult functionResult = new FunctionResult();
functionResult.Result = false;
// 看是否有合理的请求参数
if (context.Request["openId"] != null && context.Request["password"] != null && context.Request["newPassword"] != null)
{
// 读取参数
string openId = context.Request["openId"].ToString();
string password = context.Request["password"].ToString();
string newPassword = context.Request["newPassword"].ToString();
// 进行登录操作
BaseUserManager manager = new BaseUserManager();
BaseUserEntity userEntity = manager.GetByOpenId(openId);
BaseUserInfo userInfo = null;
if (userEntity != null)
{
后面还有 29 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
