typo
This commit is contained in:
parent
a71bdb57d8
commit
4388b126e2
2
main.go
2
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())
|
log.Printf("scsusers.Register: Bcrypt GenerateFromPassword failed? Pass is %s and error is %s\n", pass, err.Error())
|
||||||
return false
|
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)
|
_, err = c.db.Exec(q, username, username, email, crypt, ip)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("scsusers.Register: insert failed: %s\n", err.Error())
|
log.Printf("scsusers.Register: insert failed: %s\n", err.Error())
|
||||||
|
|
Loading…
Reference in New Issue