new users must be created with empty option string

This commit is contained in:
Ted Unangst 2019-07-23 13:21:54 -04:00
parent 26cb0ee381
commit e23e076c3a
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ func createuser(db *sql.DB, r *bufio.Reader) error {
if err != nil { if err != nil {
return err 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 { if err != nil {
return err return err
} }