From c4dbe6328640f8ac43518a642e77dec061bfdd03 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Wed, 10 May 2023 14:15:30 -0500 Subject: add hacky command parser --- db/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db') diff --git a/db/db.go b/db/db.go index c58f6ad..55ef81b 100644 --- a/db/db.go +++ b/db/db.go @@ -119,7 +119,7 @@ func (p *Phlox) Create(filename string) error { insert into config values("hostaddress", "localhost:3333"); insert into config values("loginpage", ""); - create table users (userid integer not null primary key, username string, passwordhash string, salt string); + create table users (userid integer not null primary key, username string unique, passwordhash string, salt string); create table sessions (sessionid string not null primary key, userid integer, created string, modified string, foreign key(userid) references users(userid)); create table endpoints (endpointid integer not null primary key, name string, path string, address string); `) -- cgit v1.2.1