public static bool OnLogin(string name, string pwd)
 {
     //A long password, short
     if (string.IsNullOrEmpty(name))
     {
         return(false);
     }
     if (name != null && name.StartsWith("[AI]"))
     {
         //	Logger.Debug("[AI]login:"******"=="+Program.Config.AIPass+"?");
         return(Program.Config.AIPass == pwd);
     }
     if (!Program.Config.isNeedAuth)
     {
         return(true);
     }
     //Server interface
     return(ServerApi.CheckLogin(name, pwd));
 }