Fix bug in databaseinit
This commit is contained in:
parent
9a7f22f9eb
commit
6a4089243a
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user