modified: app.py
This commit is contained in:
2
app.py
2
app.py
@@ -32,7 +32,7 @@ def init_db():
|
|||||||
conn.execute('''CREATE TABLE IF NOT EXISTS products
|
conn.execute('''CREATE TABLE IF NOT EXISTS products
|
||||||
(barcode TEXT PRIMARY KEY, name TEXT, price REAL, image_url TEXT)''')
|
(barcode TEXT PRIMARY KEY, name TEXT, price REAL, image_url TEXT)''')
|
||||||
|
|
||||||
# Default user: admin / Pass: seki123
|
# Default user: admin / Pass: choripan1234
|
||||||
user = conn.execute('SELECT * FROM users WHERE username = ?', ('admin',)).fetchone()
|
user = conn.execute('SELECT * FROM users WHERE username = ?', ('admin',)).fetchone()
|
||||||
if not user:
|
if not user:
|
||||||
hashed_pw = generate_password_hash('choripan1234')
|
hashed_pw = generate_password_hash('choripan1234')
|
||||||
|
|||||||
Reference in New Issue
Block a user