Esempio n. 1
0
    public static void BtnLogin()
    {
        string account = Inputmgr.GetCache("account");
        string pwd     = Inputmgr.GetCache("pwd");

        m_login_tos t1 = new m_login_tos();

        t1.Name = account;
        t1.Pwd  = MD5Helper.Md5(pwd);
        t1.Op   = (int)STATUS.LOGIN;
        WSocket.Send(t1);
    }
Esempio n. 2
0
    public static bool CheckRegAcc()
    {
        string acc = Inputmgr.GetCache("raccount");

        if (acc.Length < 3 || acc.Length > 12)
        {
            logError(ErrorCode.ERRORCODE_3);
            Inputmgr.GetObj("raccount").GetComponent <InputField>().ActivateInputField();
            return(false);
        }
        logError(ErrorCode.NONE);
        return(true);
    }
Esempio n. 3
0
    public static bool CheckRegPwd1()
    {
        string pwd = Inputmgr.GetCache("rpwd");

        if (pwd.Length < 6 || pwd.Length > 12)
        {
            logError(ErrorCode.ERRORCODE_2);
            Inputmgr.GetObj("rpwd").GetComponent <InputField>().ActivateInputField();
            return(false);
        }
        logError(ErrorCode.NONE);
        return(true);
    }
Esempio n. 4
0
    public static bool CheckRegPwd()
    {
        string pwd  = Inputmgr.GetCache("rpwd");
        string pwd1 = Inputmgr.GetCache("rpwd1");

        Debug.Log(pwd + " == " + pwd1);
        if (!pwd.Equals(pwd1))
        {
            logError(ErrorCode.ERRORCODE_1);
            return(false);
        }
        logError(ErrorCode.NONE);
        return(true);
    }