From 7e2a5a90c1c5927b23b48cb72c4e079918cf5666 Mon Sep 17 00:00:00 2001 From: Arzumify Date: Mon, 24 Jun 2024 20:36:14 +0100 Subject: [PATCH] Forgot the substituion ?s --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index ee253c5..24a7bfc 100644 --- a/main.go +++ b/main.go @@ -372,10 +372,10 @@ func main() { } if !enableAPIVersion2 { - _, err = conn.Exec("INSERT INTO users (username, password, versionTwoLegacyPassword, created) VALUES (?, ?, ?)", username, hashedPasswd, "nil", strconv.FormatInt(time.Now().Unix(), 10)) + _, err = conn.Exec("INSERT INTO users (username, password, versionTwoLegacyPassword, created) VALUES (?, ?, ?, ?)", username, hashedPasswd, "nil", strconv.FormatInt(time.Now().Unix(), 10)) } else { legacyPassword := data["legacyPassword"].(string) - _, err = conn.Exec("INSERT INTO users (username, password, versionTwoLegacyPassword, created) VALUES (?, ?, ?)", username, hashedPasswd, legacyPassword, strconv.FormatInt(time.Now().Unix(), 10)) + _, err = conn.Exec("INSERT INTO users (username, password, versionTwoLegacyPassword, created) VALUES (?, ?, ?, ?)", username, hashedPasswd, legacyPassword, strconv.FormatInt(time.Now().Unix(), 10)) } if err != nil {