Fix subsonic token when authenticating by Header

This commit is contained in:
Deluan 2021-06-18 19:00:13 -04:00
parent 66b74c81f1
commit 31ea033880

View file

@ -274,7 +274,7 @@ func handleLoginFromHeaders(ds model.DataStore, r *http.Request) map[string]inte
}
userRepo := ds.User(r.Context())
user, err := userRepo.FindByUsername(username)
user, err := userRepo.FindByUsernameWithPassword(username)
if user == nil || err != nil {
log.Warn(r, "User passed in header not found", "user", username)
return nil