aboutsummaryrefslogtreecommitdiff
path: root/src/index.js
diff options
context:
space:
mode:
authorAkshay" (aider) <[email protected]>2024-11-09 10:12:18 +0000
committerAkshay" (aider) <[email protected]>2024-11-09 10:12:18 +0000
commit6be11192f3455e4c50a825a63b42fa008aec3f92 (patch)
tree91217ba5025b66b3455d0b36e4f2866baf00b655 /src/index.js
parentf8f82fd4693d2af56c8cb92e19124a17fd487272 (diff)
refactor: Update db schema to store password hashes instead of plaintext passwords
Diffstat (limited to 'src/index.js')
-rw-r--r--src/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index.js b/src/index.js
index f4261c0..6885ee5 100644
--- a/src/index.js
+++ b/src/index.js
@@ -9,7 +9,7 @@ const createUsers = db.query(`
9 CREATE TABLE IF NOT EXISTS users ( 9 CREATE TABLE IF NOT EXISTS users (
10 id INTEGER PRIMARY KEY AUTOINCREMENT, 10 id INTEGER PRIMARY KEY AUTOINCREMENT,
11 username TEXT UNIQUE, 11 username TEXT UNIQUE,
12 password TEXT 12 password_hash TEXT
13 ) 13 )
14`); 14`);
15 15