Exemple #1
0
        /// <summary>
        /// 判断密码是否一致
        /// </summary>
        /// <param name="paramUserName"></param>
        /// <param name="paramPwd"></param>
        /// <returns></returns>
        public bool IsCheckPwd(string paramUserName, string paramPwd)
        {
            bool      IsCheckPwd     = false;
            string    paramSelectPwd = string.Empty;
            DataTable myDt           = new DataTable();

            myDt           = myDALogin.GetUserData(paramUserName);
            paramSelectPwd = myDt.Rows[0]["passwd"].ToString().Trim();
            if (paramPwd.Equals(paramSelectPwd)) //输入密码肯查询胡是否一支
            {
                IsCheckPwd = true;               //说明密码一样
            }
            return(IsCheckPwd);
        }