Updated login

This commit is contained in:
Tracker-Friendly 2023-11-20 17:57:28 +00:00
parent 61657d1b3d
commit c7d9b24aa6
1 changed files with 2 additions and 1 deletions

View File

@ -161,7 +161,8 @@ def changepass():
def register(): def register():
# Get the form data # Get the form data
username = request.form.get('username') username = request.form.get('username')
password = request.form.get('passwordhash') passwordhash = request.form.get('passwordhash')
password = request.form.get('password')
if passwordhash: if passwordhash:
is_password_valid = verify_bcrypt(password_to_check, passwordhash) is_password_valid = verify_bcrypt(password_to_check, passwordhash)