Skip to content

Commit

Permalink
fix(sample_project): show credentials only if not logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Jun 13, 2024
1 parent 7ddd8f2 commit d83a68f
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions sample_project/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,22 @@
{% load sample_project %}

{% block content %}
<div class="container">
<div class="card card-index">
<div class="card-body">
<p class="text-center">Username:</p>
<pre class="text-center">admin</pre>
<hr class="hr-index" />
<p class="text-center">Current password:</p>
<pre class="text-center">{% password %}</pre>
<hr class="hr-index" />
<p class="text-center">Startup time:</p>
<pre class="text-center">{% startup %}</pre>

{% if not user.is_authenticated %}
<div class="container">
<div class="card card-index">
<div class="card-body">
<p class="text-center">Username:</p>
<pre class="text-center">admin</pre>
<hr class="hr-index" />
<p class="text-center">Current password:</p>
<pre class="text-center">{% password %}</pre>
<hr class="hr-index" />
<p class="text-center">Startup time:</p>
<pre class="text-center">{% startup %}</pre>
</div>
</div>
</div>
</div>
{% endif %}

{% endblock content %}

0 comments on commit d83a68f

Please sign in to comment.