From a71bdb57d87ed36dd35e1bff3ea0a09f94353abd Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 18 Jul 2020 09:05:56 -0400 Subject: [PATCH] typo --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 65a27f8..1c03791 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, CURRENT_TIMESTAMP, $4)", 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())