Fix bug in databaseinit
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user