BUGFIX: Login page always had demo details

This commit is contained in:
Jeroen De Meerleer 2022-08-09 17:32:42 +02:00
parent 2db4454781
commit 5b5eff0221
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

2
templates/security/login.html.twig Normal file → Executable file
View File

@ -39,7 +39,7 @@
<input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
<button type="submit" class="mb-3 btn btn-outline-primary">{{ 'security.login.submit-btn.label' | trans }}</button>
</form>
{% if app.request.server.get('DEMO_MODE') %}
{% if app.request.server.get('DEMO_MODE') == 'true' %}
{# Demo mode credentials #}
<div class="mb-3 text-muted small">
<p class="mb-0">{{ 'demomode.credentials.header' | trans }}</p>