WIP
This commit is contained in:
2
db.js
2
db.js
@@ -18,7 +18,7 @@ const db = new sqlite3.Database(dbPath, (err) => {
|
|||||||
console.error('Error creating devices table', err);
|
console.error('Error creating devices table', err);
|
||||||
} else {
|
} else {
|
||||||
// Insert a default device for testing if it doesn't exist
|
// Insert a default device for testing if it doesn't exist
|
||||||
db.run(`INSERT OR IGNORE INTO devices (login, password) VALUES ('admin', 'admin123')`);
|
db.run(`INSERT OR IGNORE INTO devices (login, password) VALUES ('daragt', 'daragt4740')`);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user