stuff
This commit is contained in:
parent
4125dd0196
commit
b5ea9955cb
1
main.go
1
main.go
|
@ -89,6 +89,7 @@ func Register(username, email, ip string) bool {
|
|||
}
|
||||
|
||||
func Login(username, password string) bool {
|
||||
log.Println("Attempting login for "+ username)
|
||||
q:=fmt.Sprintf("select password from %s_auth where username=$1",c.TablePrefix)
|
||||
var crypt string
|
||||
err:=c.db.Get(&crypt, q, username)
|
||||
|
|
Loading…
Reference in New Issue