59 } 60 61 IniFile ini = new IniFile( _strServUDaemonPath ); 62 string strSectionValue = "USER=" + strUserID.Trim() + "1"; 63 64 //通过读取指定用户的HomeDir来确定是否存在该用户 65 if( ini.ReadString( strSectionValue, "HomeDir", "" ) == "" ) 66 { 67 controlMessage.InnerHtml = "指定的用户不存在"; 68 return; 69 } 70 71 //开始判断密码是否正确 72 string strPassword = ini.ReadString( strSectionValue, "Password", "" ); 73 74 string strPasswordFrontTwoChars; 75 bool bPasswordRight = false; 76 if( strPassword.Length > 2 ) 77 { 78 //读取密码中包含的随机字母 79 strPasswordFrontTwoChars = strPassword.Substring( 0, 2 ); 80 if( CreateCryPassword( strPasswordFrontTwoChars, txtOldPassword.Text ) == strPassword ) 81 {//密码符合 82 bPasswordRight = true; 83 }
上一篇:在IIS6.0下ASP .NET 的版本冲突问题
下一篇:以前编写Like谓词被忽略的使用方法
|