Yeet useless tables

Yeet useless data paths in dockerfile
Add order into templates file
This commit is contained in:
Michał Gdula 2023-06-22 13:19:00 +00:00
parent b19dedc568
commit 300c80fcd5
17 changed files with 86 additions and 106 deletions

View file

@ -15,7 +15,7 @@ blueprint = Blueprint("auth", __name__)
@blueprint.route("/auth", methods=["GET"])
def auth():
return render_template("auth.html")
return render_template("views/auth.html")
@blueprint.route("/register", methods=["POST"])
@ -59,10 +59,9 @@ def register():
@blueprint.route("/login", methods=["POST"])
def login():
# Get the form data
username = request.form["username"].strip()
password = request.form["password"].strip()
username = request.form.get("username", None).strip()
password = request.form.get("password", None).strip()
username_regex = re.compile(USER_REGEX)
error = []
# Validate the form