From 417409030a7f41e25b5ac6a7955e4279c18d06c0 Mon Sep 17 00:00:00 2001 From: Howl Date: Sat, 14 May 2016 20:18:29 +0200 Subject: [PATCH] Fix 500 on tokens/new --- app/v1/token.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/v1/token.go b/app/v1/token.go index e7f0468..834399c 100644 --- a/app/v1/token.go +++ b/app/v1/token.go @@ -114,7 +114,7 @@ func TokenNewPOST(md common.MethodData) common.CodeMessager { return Err500 } } - _, err = md.DB.Exec("INSERT INTO tokens(user, privileges, description, token) VALUES (?, ?, ?, ?)", r.ID, r.Privileges, data.Description, tokenMD5) + _, err = md.DB.Exec("INSERT INTO tokens(user, privileges, description, token, private) VALUES (?, ?, ?, ?, '0')", r.ID, r.Privileges, data.Description, tokenMD5) if err != nil { md.Err(err) return Err500