Ejemplo n.º 1
0
    // 重置玩家登录密码
    public OpRes resetPlayerPwd(string acc, string newPwd, GMUser user)
    {
        ParamModifyPwd p = new ParamModifyPwd();

        p.m_account = acc;
        p.m_newPwd  = newPwd;
        p.m_pwdType = 0;
        OpRes res = user.doDyop(p, DyOpType.opTypeModifyPwd);

        return(res);
    }
Ejemplo n.º 2
0
        protected void onModify(object sender, EventArgs e)
        {
            ParamModifyPwd p = new ParamModifyPwd();

            p.m_account = m_account.Text;
            p.m_phone   = m_phone.Text;
            GMUser  user = (GMUser)Session["user"];
            DyOpMgr mgr  = user.getSys <DyOpMgr>(SysType.sysTypeDyOp);
            OpRes   res  = mgr.doDyop(p, DyOpType.opTypeBindPhone, user);

            m_res.InnerHtml = OpResMgr.getInstance().getResultString(res);
        }
Ejemplo n.º 3
0
        protected void onResetPlayerPwd(object sender, EventArgs e)
        {
            GMUser user = (GMUser)Session["user"];

            ParamModifyPwd p = new ParamModifyPwd();

            p.m_account = m_acc1.Text;
            p.m_newPwd  = m_pwd1.Text;
            p.m_pwdType = 0; // 更改登录密码
            OpRes res = user.doDyop(p, DyOpType.opTypeModifyPwd);

            m_res1.InnerHtml = OpResMgr.getInstance().getResultString(res);
        }
        protected void onModify(object sender, EventArgs e)
        {
            ParamModifyPwd p = new ParamModifyPwd();

            p.m_playerId = m_account.Text;
            p.m_newPwd   = m_newPwd.Text;
            p.m_pwdType  = Convert.ToInt32(m_pwdType.SelectedValue);

            GMUser  user = (GMUser)Session["user"];
            DyOpMgr mgr  = user.getSys <DyOpMgr>(SysType.sysTypeDyOp);
            OpRes   res  = mgr.doDyop(p, DyOpType.opTypeModifyPwd, user);

            m_res.InnerHtml = OpResMgr.getInstance().getResultString(res);
        }