mirror of
https://github.com/dkmstr/openuds.git
synced 2025-01-05 09:17:54 +03:00
Improvement on ready setting logged in counter to 0
This commit is contained in:
parent
0dc461c30b
commit
17044d38bd
@ -177,6 +177,11 @@ class OSManager(Module):
|
|||||||
def logKnownIp(self, userService, ip):
|
def logKnownIp(self, userService, ip):
|
||||||
userService.logIP(ip)
|
userService.logIP(ip)
|
||||||
|
|
||||||
|
|
||||||
|
def toReady(self, userService):
|
||||||
|
userService.setProperty('loginsCounter', '0')
|
||||||
|
|
||||||
|
|
||||||
def loggedIn(self, userService, userName=None, save=True):
|
def loggedIn(self, userService, userName=None, save=True):
|
||||||
'''
|
'''
|
||||||
This method:
|
This method:
|
||||||
|
@ -171,6 +171,7 @@ class LinuxOsManager(osmanagers.OSManager):
|
|||||||
state = State.USABLE
|
state = State.USABLE
|
||||||
self.notifyIp(userService.unique_id, userService, data)
|
self.notifyIp(userService.unique_id, userService, data)
|
||||||
elif msg == "ready":
|
elif msg == "ready":
|
||||||
|
self.toReady(userService)
|
||||||
state = State.USABLE
|
state = State.USABLE
|
||||||
notifyReady = True
|
notifyReady = True
|
||||||
self.notifyIp(userService.unique_id, userService, data)
|
self.notifyIp(userService.unique_id, userService, data)
|
||||||
|
@ -181,6 +181,7 @@ class WindowsOsManager(osmanagers.OSManager):
|
|||||||
state = State.USABLE
|
state = State.USABLE
|
||||||
self.notifyIp(userService.unique_id, userService, data)
|
self.notifyIp(userService.unique_id, userService, data)
|
||||||
elif msg == "ready":
|
elif msg == "ready":
|
||||||
|
self.toReady(userService)
|
||||||
state = State.USABLE
|
state = State.USABLE
|
||||||
notifyReady = True
|
notifyReady = True
|
||||||
self.notifyIp(userService.unique_id, userService, data)
|
self.notifyIp(userService.unique_id, userService, data)
|
||||||
|
Loading…
Reference in New Issue
Block a user