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
+6
View File
@@ -1,7 +1,13 @@
from flask import Blueprint, render_template
from flask_login import login_required, current_user
main_bp = Blueprint("main", __name__)
@main_bp.route("/")
def home():
return render_template("index.html")
@main_bp.route('/dashboard')
@login_required
def dashboard():
return render_template('dashboard.html', user=current_user)