mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2025-12-23 14:52:43 +00:00
Compare commits
1 commit
8945d13e87
...
a3a0457ae1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a3a0457ae1 |
5 changed files with 226 additions and 223 deletions
|
|
@ -140,3 +140,5 @@ func AuthenticateUser(cfg Config, username, password string) (bool, error) {
|
|||
}
|
||||
return true, nil
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1588,6 +1588,7 @@ func (s *InboundService) ToggleClientEnableByEmail(clientEmail string) (bool, bo
|
|||
return !clientOldEnabled, needRestart, nil
|
||||
}
|
||||
|
||||
|
||||
// SetClientEnableByEmail sets client enable state to desired value; returns (changed, needRestart, error)
|
||||
func (s *InboundService) SetClientEnableByEmail(clientEmail string, enable bool) (bool, bool, error) {
|
||||
current, err := s.checkIsEnabledByEmail(clientEmail)
|
||||
|
|
|
|||
Loading…
Reference in a new issue