Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mazzz1y committed Nov 29, 2024
1 parent 9c9b4c6 commit 2ce8d03
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/entrypoint/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ func (e *Entrypoint) authenticate(r *http.Request) (keenetic.ClientWrapper, erro
if storedPass != pass {
return nil, fmt.Errorf("invalid password for user: %s", user)
}
client, ok := getClientByName(e.Options.Device, user)
if !ok {
return nil, fmt.Errorf("client not found for authenticated user: %s", user)
}
return client, nil
}

if len(e.Options.Device.Users) > 0 {
Expand Down

0 comments on commit 2ce8d03

Please sign in to comment.