mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Fix subsonic token when authenticating by Header
This commit is contained in:
parent
66b74c81f1
commit
31ea033880
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue