mirror of
https://github.com/Fluffy-Bean/GameExpo23.git
synced 2025-05-18 01:14:59 +00:00
Yeet useless tables
Yeet useless data paths in dockerfile Add order into templates file
This commit is contained in:
parent
b19dedc568
commit
300c80fcd5
17 changed files with 86 additions and 106 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue