Fixed signup crashing becuase of extra field specified in constructor

This commit is contained in:
Luke Else 2024-01-10 23:50:04 +00:00
parent 75e7ad5994
commit 6d91fe8095

View File

@ -55,7 +55,6 @@ def signup():
return redirect("/signup") return redirect("/signup")
database.create(Customer( database.create(Customer(
0,
request.form['username'], request.form['username'],
sha512(request.form['password'].encode()).hexdigest(), # Hashed as soon as it is recieved on the backend sha512(request.form['password'].encode()).hexdigest(), # Hashed as soon as it is recieved on the backend
request.form['firstname'], request.form['firstname'],