Пример #1
0
 public static int checkAccount(string strAccountName, string strPassword, int intIsJudge)
 {
     mysql myCheckPlayer = new mysql();
     string strMd5Password = myCheckPlayer.getPlayerMd5Password(strAccountName);
     if (strMd5Password == "-1")
     {
         return -1;
     }
     string md5ed = "";
     if (strPassword.Length < 10)
     {
         md5ed = md5(strPassword);
     }
     else
     {
         md5ed = strPassword;
     }
     if (md5ed == strMd5Password)
     {
         return 0;
     }
     return -1;
 }