DotNet.UserCenter/LogOn.ashx.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

//-----------------------------------------------------------------------
// <copyright file="User.ashx" company="Hairihan">
//     Copyright (c) 2014 , All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Data;
using System.Web;
using System.Web.Script.Serialization;

namespace DotNet.UserCenter
{
    using DotNet.Business;
    using DotNet.Utilities;

    /// <summary>
    /// LogOn
    /// 用户登录
    /// 
    /// 修改纪录
    /// 
    /// 2014-02-08 版本:1.0 JiRiGaLa 创建。
    /// 
    /// <author>
    ///     <name>JiRiGaLa</name>
    ///     <date>2014-02-08</date>
    /// </author>
    /// </summary>
    public class LogOn : IHttpHandler
    {
        #region private void LogOnByCompany(HttpContext context, NameValueCollection nameValueCollection) 按公司名称登录
        /// <summary>
        /// 按公司名称登录
        /// </summary>
        /// <param name="context">上下文</param>
        /// <param name="nameValueCollection">参数集合</param>
        private void LogOnByCompany(HttpContext context, NameValueCollection nameValueCollection)
        {
            // 执行序列化
            JavaScriptSerializer javaScriptSerializer = new JavaScriptSerializer();
            BaseUserInfo userInfo = null;

            if (!string.IsNullOrEmpty(nameValueCollection["User"])
                && !string.IsNullOrEmpty(nameValueCollection["Password"]))
            {
                string company = string.Empty;
                string user = string.Empty;
                string password = string.Empty;

                if (!string.IsNullOrEmpty(nameValueCollection["Company"]))
                {
                    company = nameValueCollection["Company"];
                    company = SecretUtil.SqlSafe(company);
                }
                if (!string.IsNullOrEmpty(nameValueCollection["User"]))
                {
                    user = nameValueCollection["User"];
后面还有 94 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。