Compare commits

..

No commits in common. "57c1cfb412d7f28aeae643b083d39aee8eb0038e" and "548cddb77399364ff01da505750d1e2037acb6f5" have entirely different histories.

2 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ func (db *T) Authenticate(username, password string) (authenticated bool, userID
SELECT id SELECT id
FROM _webservice.user FROM _webservice.user
WHERE WHERE
LOWER(username) = LOWER($1) AND username = $1 AND
password = _webservice.password_hash(SUBSTRING(password FROM 1 FOR 32), $2::bytea) password = _webservice.password_hash(SUBSTRING(password FROM 1 FOR 32), $2::bytea)
`, `,
username, username,

2
pkg.go
View File

@ -52,7 +52,7 @@ import (
"strings" "strings"
) )
const VERSION = "v0.2.11" const VERSION = "v0.2.10"
type HttpHandler func(http.ResponseWriter, *http.Request) type HttpHandler func(http.ResponseWriter, *http.Request)