diff --git a/modules/core/templates/loginuserpass.twig b/modules/core/templates/loginuserpass.twig
index ffb6e926dc61255ef0c3a0e469fab13c5ef3402a..43344580ec3c9e1253fb9cbe55abeda90676d316 100644
--- a/modules/core/templates/loginuserpass.twig
+++ b/modules/core/templates/loginuserpass.twig
@@ -7,6 +7,15 @@
 {% endblock %}
 
 {% block content %}
+    {%- if not isProduction %}
+
+    <div class="message-box warning">
+      {% trans %}You are now accessing a pre-production system. This authentication setup
+      {#- #} is for testing and pre-production verification only. If someone sent you
+      {#- #} a link that pointed you here, and you are not <i>a tester</i> you
+      {#- #} probably got the wrong link, and should <b>not be here</b>.{% endtrans %}
+    </div>
+    {% endif -%}
     {% if errorcode -%}
     <div class="pure-g">
         <div class="pure-u-1">
diff --git a/templates/base.twig b/templates/base.twig
index e33257b76a6cd95e3490213288b142d2d90f415d..5312a9792a7388e6c0a70df840b8978e015327dc 100644
--- a/templates/base.twig
+++ b/templates/base.twig
@@ -22,21 +22,12 @@
 
       <div id="content">
         <div class="wrap">
-          {%- if not isProduction %}
-
-          <div class="message-box warning">
-            {% trans %}You are now accessing a pre-production system. This authentication setup
-            {#- #} is for testing and pre-production verification only. If someone sent you
-            {#- #} a link that pointed you here, and you are not <i>a tester</i> you
-            {#- #} probably got the wrong link, and should <b>not be here</b>.{% endtrans %}
-          </div>
-          {% endif -%}
           {%- block contentwrapper %}
             {%- block content %}{% endblock %}
           {%- endblock contentwrapper %}
 
-          </div>
-        </div><!-- content -->
+        </div>
+      </div><!-- content -->
       <div id="push"></div>
     </div><!-- layout -->
     <div id="foot">