示例#1
0
    void Modify()
    {
        if (m_pwd == "")
        {
            DialogBase.Show("Modify Password", "Invalid password(NULL).");
            return;
        }

        if (m_npwd != m_npwd2)
        {
            DialogBase.Show("Modify Password", "Your new and confirm passwords\n are different, Please retry.");
            return;
        }

        if (m_npwd == "")
        {
            DialogBase.Show("Modify Password", "Invalid new password(NULL).");
            return;
        }

        m_pwdMD5  = Tools.GetMD5(m_pwd);
        m_npwdMD5 = Tools.GetMD5(m_npwd);
        Reception recp = GameObject.Find("Reception").GetComponent <Reception>();

        recp.ModifyPassword(m_pwdMD5, m_npwdMD5, AfterModifyPassword);
    }