modified: app.py
modified: pos_database.db
This commit is contained in:
2
app.py
2
app.py
@@ -35,7 +35,7 @@ def init_db():
|
|||||||
# Default user: admin / Pass: seki123
|
# Default user: admin / Pass: seki123
|
||||||
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('seki123')
|
hashed_pw = generate_password_hash('choripan1234')
|
||||||
conn.execute('INSERT INTO users (username, password) VALUES (?, ?)', ('admin', hashed_pw))
|
conn.execute('INSERT INTO users (username, password) VALUES (?, ?)', ('admin', hashed_pw))
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
|
||||||
|
|||||||
BIN
pos_database.db
BIN
pos_database.db
Binary file not shown.
Reference in New Issue
Block a user