select fot struct
This commit is contained in:
parent
822f0d0650
commit
07364ae267
2
main.go
2
main.go
|
@ -125,7 +125,7 @@ func Get(username string) (*UserData, bool) {
|
|||
|
||||
u := NewUser()
|
||||
q := fmt.Sprintf("select username, password, id from %s_auth where username=?", c.TablePrefix)
|
||||
err := c.db.Select(u, q, username)
|
||||
err := c.db.Get(u, q, username)
|
||||
if err != nil {
|
||||
if err == sql.ErrNoRows {
|
||||
return nil, false
|
||||
|
|
Loading…
Reference in New Issue