Fix lint issues

This commit is contained in:
braginini
2023-03-01 10:37:29 +01:00
parent 34c73f0b34
commit ac0982bb8d
2 changed files with 3 additions and 6 deletions

View File

@@ -3,7 +3,6 @@ package server
import (
"context"
"fmt"
"github.com/netbirdio/netbird/management/server/http/middleware"
"math/rand"
"net"
"net/netip"
@@ -120,10 +119,8 @@ type DefaultAccountManager struct {
// singleAccountModeDomain is a domain to use in singleAccountMode setup
singleAccountModeDomain string
// dnsDomain is used for peer resolution. This is appended to the peer's name
dnsDomain string
peerLoginExpiry Scheduler
jwtMiddleware *middleware.JWTMiddleware
jwtClaimsExtractor *jwtclaims.ClaimsExtractor
dnsDomain string
peerLoginExpiry Scheduler
}
// Settings represents Account settings structure that can be modified via API and Dashboard

View File

@@ -682,7 +682,7 @@ func (am *DefaultAccountManager) LoginPeer(login PeerLogin) (*Peer, error) {
if peer.UserID != "" && (expired || peer.Status.LoginExpired) {
if login.UserID == "" {
// absence of a user ID indicates that JWT wasn't provided.
peer, err = am.markPeerLoginExpired(peer, account, true)
_, err = am.markPeerLoginExpired(peer, account, true)
if err != nil {
return nil, err
}