feat: password-based registration and login (closes #1) #23

Merged
sneak merged 7 commits from feature/auth-passwords into main 2026-02-28 19:57:41 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 69c9550bb2 - Show all commits

View File

@@ -1,11 +1,12 @@
-- Chat server schema (pre-1.0 consolidated)
PRAGMA foreign_keys = ON;
-- Sessions: IRC-style sessions (no passwords, nick + optional signing key)
-- Sessions: each session is a user identity (nick + optional password + signing key)
CREATE TABLE IF NOT EXISTS sessions (
id INTEGER PRIMARY KEY AUTOINCREMENT,
uuid TEXT NOT NULL UNIQUE,
nick TEXT NOT NULL UNIQUE,
password_hash TEXT NOT NULL DEFAULT '',
signing_key TEXT NOT NULL DEFAULT '',
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
last_seen DATETIME DEFAULT CURRENT_TIMESTAMP

View File

@@ -1 +0,0 @@
ALTER TABLE sessions ADD COLUMN password_hash TEXT NOT NULL DEFAULT '';