Forgot the substituion ?s
This commit is contained in:
parent
d4fe38f245
commit
7e2a5a90c1
4
main.go
4
main.go
|
@ -372,10 +372,10 @@ func main() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !enableAPIVersion2 {
|
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 {
|
} else {
|
||||||
legacyPassword := data["legacyPassword"].(string)
|
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 {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue