From 2ce8d038c4a1ddf047586fd4717fedab0a977c2f Mon Sep 17 00:00:00 2001 From: Dmitry Rubtsov Date: Fri, 29 Nov 2024 21:47:32 +0600 Subject: [PATCH] small fixes --- internal/entrypoint/middleware.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/internal/entrypoint/middleware.go b/internal/entrypoint/middleware.go index f7e947f..cf573e3 100644 --- a/internal/entrypoint/middleware.go +++ b/internal/entrypoint/middleware.go @@ -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 {