From a38f778312b392614ec0ccf14f9f2790671b63eb Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Mon, 12 Jun 2017 23:52:26 -0400 Subject: Abstract all DB access via DataStore, fix lfm_password bug --- apiv1.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apiv1.go') 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 -- cgit v1.2.3-70-g09d2