Merge branch 'MHSanaei:main' into main

This commit is contained in:
Дмитрий Олегович Саенко 2025-10-26 14:53:17 +03:00 committed by GitHub
commit dad9e37cdb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 223 additions and 226 deletions

View file

@ -140,5 +140,3 @@ func AuthenticateUser(cfg Config, username, password string) (bool, error) {
} }
return true, nil return true, nil
} }

View file

@ -1569,7 +1569,6 @@ func (s *InboundService) ToggleClientEnableByEmail(clientEmail string) (bool, bo
return !clientOldEnabled, needRestart, nil return !clientOldEnabled, needRestart, nil
} }
// SetClientEnableByEmail sets client enable state to desired value; returns (changed, needRestart, error) // SetClientEnableByEmail sets client enable state to desired value; returns (changed, needRestart, error)
func (s *InboundService) SetClientEnableByEmail(clientEmail string, enable bool) (bool, bool, error) { func (s *InboundService) SetClientEnableByEmail(clientEmail string, enable bool) (bool, bool, error) {
current, err := s.checkIsEnabledByEmail(clientEmail) current, err := s.checkIsEnabledByEmail(clientEmail)