Implement basic login system

This commit is contained in:
Elnu 2023-06-14 23:10:10 -07:00
parent d669adeb2f
commit 8674adb1a5
8 changed files with 517 additions and 13 deletions

View file

@ -14,14 +14,20 @@
<input type="number">
<a><svg class="svg-inline" aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512"><path fill="currentColor" d="M342.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 256 105.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"></path></svg></a>
{% if content.song %}
<div>
<span>{{ content.song.japanese }}</span>
</div>
<div>
<span>{{ content.song.japanese }}</span>
</div>
{% endif %}
{# <a href="#">Login</a> #}
<a>
{% if logged_in %}
<a href="#" class="right">
<span>@mochamoko</span> <img src="https://cdn.discordapp.com/avatars/101938458200641536/dd726225dbf0ae3d7888c6dbfec3eabe.webp?size=1024">
</a>
<a href="/logout" class="right">
<span>Log out</span>
</a>
{% else%}
<a href="/login" class="right">Log in</a>
{% endif %}
</nav>
<div>
<h1>Welcome to Tegaki Tuesday #{{ challenge }}!</h1>