feat(webui): add user account creation

This commit is contained in:
Julien Dessaux 2025-03-19 00:48:58 +01:00
parent 7abe963bfd
commit 26c5f9c5c7
Signed by: adyxax
GPG key ID: F92E51B86E07177E
7 changed files with 124 additions and 17 deletions

View file

@ -5,12 +5,13 @@ CREATE TABLE schema_version (
CREATE TABLE accounts (
id TEXT PRIMARY KEY,
username TEXT NOT NULL,
salt BLOB NOT NULL,
password_hash BLOB NOT NULL,
is_admin INTEGER NOT NULL DEFAULT FALSE,
salt BLOB,
password_hash BLOB,
is_admin INTEGER NOT NULL,
created INTEGER NOT NULL DEFAULT (unixepoch()),
last_login INTEGER NOT NULL DEFAULT (unixepoch()),
settings BLOB NOT NULL
settings BLOB NOT NULL,
password_reset TEXT
) STRICT;
CREATE UNIQUE INDEX accounts_username on accounts(username);