Fix bug in databaseinit

This commit is contained in:
kitoy 2025-12-21 19:28:24 +01:00
parent 9a7f22f9eb
commit 6a4089243a

View File

@ -57,7 +57,7 @@ def init_db(database):
# pywallter qui permet la première inscription
if not(accounts) :
user = "pywallter"
token = gen_token()
token = gen_token("Invitation")
passwd_bcrypt = bcrypt.generate_password_hash(token)
cursor.execute("""INSERT INTO users(name, passwd, token) VALUES(?, ?, ?)""", (user, passwd_bcrypt, token))
conn.commit()