【问题标题】:Anti CSRF token functionality still disabled in Bolt\Controller\Backend\Records::edit BOLT CMSBolt\Controller\Backend\Records::edit BOLT CMS 中仍禁用反 CSRF 令牌功能
【发布时间】:2015-10-30 17:58:37
【问题描述】:

我遇到了 Bolt CMS 的问题。当我添加一条新记录并保存它时,我会收到这条消息:

“在 Bolt\Controller\Backend\Records::edit 中仍然禁用反 CSRF 令牌功能”

所以我添加的内容没有显示在我的视图中。

这是我的内容类型和我的观点,以表明我的代码是正确的(我认为):

pictures:
    name: Pictures
    singular_name: picture
    fields:
        title:
            type: text
            class: large
            group: content
        slug:
            type: slug
            uses: title
        image:
            type: image
        text:
            type: html
            height: 300px
    recordsperpage: 100
    default_status: publish
    sort: -datepublish

{% include '_header.twig' %}

<body class="home__bg">
    <div class="container">
        <section>
            <div class="row">
                <div class="col-md-10 col-md-offset-1 page__window">
                    <div class="col-md-12 page__window__in">

                        <h2>News</h2>
                        <div class="page__body">
                            {% setcontent adverts = 'pictures/latest/100' %}
                                {% for picture in pictures %}
                                    {{ picture.image }}
                                {% endfor %}    
                            
                        </div><!-- /.marketing__pics -->

                    </div><!-- /.page__window__in -->
                </div><!-- /.page__window -->
            </div><!-- /.row -->
        </section>
    </div><!-- /.container -->



{% include '_footer.twig' %}

谢谢你帮助我。

【问题讨论】:

    标签: php token csrf bolt-cms


    【解决方案1】:

    是的,它目前在主(开发)分支中被禁用,因为我们正在进行重构。警告是为了提醒我们它“尚未完成”

    当它作为稳定版本发布时,它将重新启用,因此请立即使用稳定版本进行任何生产工作。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-09-15
      • 2018-01-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多