From 4388b126e24275ffe7949ea62e029359450a8c32 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 18 Jul 2020 09:06:54 -0400 Subject: [PATCH] typo --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 1c03791..7615024 100644 --- a/main.go +++ b/main.go @@ -84,7 +84,7 @@ func Register(username, email, ip string) bool { log.Printf("scsusers.Register: Bcrypt GenerateFromPassword failed? Pass is %s and error is %s\n", pass, err.Error()) return false } - q := fmt.Sprintf("insert into %s_auth (username, displayname, email, password, registration_date, registration_ip) values ($1, $2, $3, , $4, CURRENT_TIMESTAMP, $5)", c.TablePrefix) + q := fmt.Sprintf("insert into %s_auth (username, displayname, email, password, registration_date, registration_ip) values ($1, $2, $3, $4, CURRENT_TIMESTAMP, $5)", c.TablePrefix) _, err = c.db.Exec(q, username, username, email, crypt, ip) if err != nil { log.Printf("scsusers.Register: insert failed: %s\n", err.Error())