added registerform

This commit is contained in:
DaanoGames
2025-04-15 11:35:01 +02:00
parent ae67d53c5e
commit ef8aef43b7
3 changed files with 23 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
from flask import Blueprint, render_template
from application.dash.forms import RegisterForm
from flask_login import login_required # type: ignore
from application.dash.models import Service
from application.decorators import admin_required
@@ -16,6 +17,14 @@ def index():
@dash_blueprint.route("/admin", methods=["GET", "POST"])
@admin_required
# @admin_required
def admin():
register_form = RegisterForm()
if register_form.validate_on_submit:
username = register_form.username.data
password = register_form.password.data
check_admin = register_form.admin.data
return render_template("admin.html")