Functional login and logout, login system should be fucntionally implemented.

Testing and polishing are next.
This commit is contained in:
2026-03-08 22:24:13 +01:00
parent cf4a611231
commit 986629f0a5
13 changed files with 84 additions and 14 deletions
+3 -3
View File
@@ -19,8 +19,8 @@
<body>
<nav>
<ul>
<li><a href="/login">Login</a></li>
<li><a href="/register">Create account</a></li>
<li><a href="{{ url_for('login.login') }}">Login</a></li>
<li><a href="{{ url_for('login.register') }}">Create account</a></li>
</ul>
</nav>
<h1>Login to your account</h1>
@@ -29,7 +29,7 @@
<p class="error">{{ error }}</p>
{% endif %}
<form action="/login" method="post">
<form action="{{ url_for('login.login') }}" method="post">
<label for="username">Username:</label>
<input type="text" name="username" required />
<label for="password">Password:</label>