aboutsummaryrefslogtreecommitdiffstats
path: root/apiv1.go
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2017-06-12 23:52:26 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2017-06-12 23:52:26 -0400
commita38f778312b392614ec0ccf14f9f2790671b63eb (patch)
tree202dd4df5d1418c285c348f2f1366d339f99a6f0 /apiv1.go
parenta8684a6aade6bac962da35a96e14667cca3c44c5 (diff)
downloadlastfm-api-a38f778312b392614ec0ccf14f9f2790671b63eb.tar.gz
Abstract all DB access via DataStore, fix lfm_password bug
Diffstat (limited to 'apiv1.go')
-rw-r--r--apiv1.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/apiv1.go b/apiv1.go
index a23780b..e555a18 100644
--- a/apiv1.go
+++ b/apiv1.go
@@ -36,7 +36,7 @@ func (app *App) mainHandler(w http.ResponseWriter, r *http.Request) {
user := r.FormValue("u")
auth := r.FormValue("a")
- userId, password, err := app.GetUser(user)
+ userId, password, err := app.GetScrobblingUser(user)
if (md5hex(password+timestamp) != auth) || err != nil {
fmt.Fprintln(w, "BADAUTH")
return