f077_default_admin_password #22

Merged
jared merged 2 commits from f077_default_admin_password into development 2025-07-31 08:40:15 +02:00
Showing only changes of commit b3e2b297a3 - Show all commits

View File

@@ -10,7 +10,7 @@ let createSQLStmt = `CREATE TABLE IF NOT EXISTS users
db.exec(createSQLStmt);
// check if there are any users; if not add one default admin one
const userPassword = 'pass-123';
const userPassword = 'A-InnoHUB_2025!';
const hashedUserPassword = new jsSHA('SHA-512', 'TEXT').update(userPassword).getHash('HEX');
const checkInsertSQLStmt = `INSERT INTO users (name, pw) SELECT 'admin', '${hashedUserPassword}'
WHERE NOT EXISTS (SELECT * FROM users);`;