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

            protect.UserID       = Fetch.GetUserCookie( ).UserID;
            protect.SafeEmail    = TextFilter.FilterScript(txtSafeEmail.Text.Trim( ));
            protect.PassportID   = TextFilter.FilterScript(txtPassportID.Text.Trim( ));
            protect.PassportType = Convert.ToByte(ddlPassportType.SelectedValue);
            protect.CreateIP     = GameRequest.GetUserIP( );

            protect.Question1 = ddlQuestion1.SelectedValue;
            protect.Question2 = ddlQuestion2.SelectedValue;
            protect.Question3 = ddlQuestion3.SelectedValue;
            protect.Response1 = TextFilter.FilterScript(txtResponse1.Text.Trim( ));
            protect.Response2 = TextFilter.FilterScript(txtResponse2.Text.Trim( ));
            protect.Response3 = TextFilter.FilterScript(txtResponse3.Text.Trim( ));

            Message umsg = accountsFacade.ApplyUserSecurity(protect);

            if (umsg.Success)
            {
                this.form1.Visible    = false;
                this.divRight.Visible = true;
            }
            else
            {
                Show(umsg.Content);
            }
        }