add password to user registration and remove file copies from build dir

This commit is contained in:
2024-01-18 12:32:09 +01:00
parent 5964ef4963
commit 066bac721b
16 changed files with 9 additions and 507 deletions

View File

@@ -30,7 +30,8 @@ def register():
elif request.method == 'POST':
username = request.form['username']
contact = request.form['contact']
sqladduser = User(username = username, contact = contact)
password = request.form['password']
sqladduser = User(username = username, contact = contact, password = password)
try:
db.session.add(sqladduser)
db.session.commit()
@@ -66,3 +67,4 @@ def project(task_id:int):
return 'User added'
except:
return 'Adding user failed'