Exemplo n.º 1
0
        protected void btnUpdate_Click(object sender, EventArgs e)
        {
            AccountsProtect protect = new AccountsProtect();

            protect.UserID    = Fetch.GetUserCookie().UserID;
            protect.SafeEmail = CtrlHelper.GetText(txtSafeEmail);
            protect.ModifyIP  = GameRequest.GetUserIP();

            protect.Question1 = ddlQuestion1.SelectedValue;
            protect.Question2 = ddlQuestion2.SelectedValue;
            protect.Question3 = ddlQuestion3.SelectedValue;
            protect.Response1 = CtrlHelper.GetText(txtMResponse1);
            protect.Response2 = CtrlHelper.GetText(txtMResponse2);
            protect.Response3 = CtrlHelper.GetText(txtMResponse3);

            Message umsg = accountsFacade.ModifyUserSecurity(protect);

            if (umsg.Success)
            {
                this.form2.Visible      = false;
                this.divRight.Visible   = true;
                this.divRight.InnerHtml = "<div class=\"Uright\">您已经成功修改了密码保护!</div>";
            }
            else
            {
                Show(umsg.Content);
            }
        }