From e23e076c3a6a2431fdd9495ded5535abffad1653 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Tue, 23 Jul 2019 13:21:54 -0400 Subject: [PATCH] new users must be created with empty option string --- util.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.go b/util.go index 76c85ce..0700eac 100644 --- a/util.go +++ b/util.go @@ -231,7 +231,7 @@ func createuser(db *sql.DB, r *bufio.Reader) error { if err != nil { return err } - _, err = db.Exec("insert into users (username, displayname, about, hash, pubkey, seckey) values (?, ?, ?, ?, ?, ?)", name, name, "what about me?", hash, pubkey, seckey) + _, err = db.Exec("insert into users (username, displayname, about, hash, pubkey, seckey, options) values (?, ?, ?, ?, ?, ?, ?)", name, name, "what about me?", hash, pubkey, seckey, "") if err != nil { return err }