Implement basic login system

This commit is contained in:
Elnu 2023-06-15 23:28:07 -07:00
parent 57c2ef9aea
commit cd34cd721e
4 changed files with 205 additions and 16 deletions

View file

@ -18,9 +18,9 @@
<span>{{ content.song.japanese }}</span>
</div>
{% endif %}
{% if logged_in %}
{% if user %}
<a href="#" class="right">
<span>@mochamoko</span> <img src="https://cdn.discordapp.com/avatars/101938458200641536/dd726225dbf0ae3d7888c6dbfec3eabe.webp?size=1024">
<span>{{ user.username }}</span> <img src="https://cdn.discordapp.com/avatars/{{ user.id }}/{{ user.avatar }}.webp?size=1024">
</a>
<a href="/logout" class="right">
<span>Log out</span>