Added support for SQLITE instead of having a dict (this should also be temp)

This commit is contained in:
2024-05-20 16:58:15 +01:00
parent 0030e4ac58
commit e201f680e2
6 changed files with 147 additions and 43 deletions
+16
View File
@@ -0,0 +1,16 @@
-- Generate a password
-- htpasswd -bnBC 10 "" kika | tr -d ':\n'
CREATE TABLE IF NOT EXISTS users(
id INTEGER PRIMARY KEY AUTOINCREMENT,
name TEXT NOT NULL UNIQUE,
password TEXT NOT NULL
);
-- pass is kika here
INSERT INTO
users(name, password)
values(
'kika',
'$2y$10$JgmGJBRPqJB5/S9gL24nC.JuMj.wnFmUHBwENCGFboCzeNATmu.rq%'
);