mirror of
https://github.com/fastogt/fastocloud_admin.git
synced 2025-03-09 23:38:52 +00:00
Sources UP
This commit is contained in:
parent
7d974ba554
commit
da74b160f2
2 changed files with 6 additions and 2 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 6dbca79ea5a4b6537b37792affb5fba2efa8a026
|
||||
Subproject commit 25132ac8d45891ac022e5d2661b58b0ea1785b95
|
|
@ -159,7 +159,7 @@ class SubscribersServiceManager(ServiceManager, IClientHandler):
|
|||
client.activate_device_fail(cid, 'User invalid password')
|
||||
return False
|
||||
|
||||
result = client.activate_device_success(cid, check_user.get_devices())
|
||||
result = client.activate_device_success(cid, check_user.get_not_active_devices())
|
||||
if not result:
|
||||
return False
|
||||
|
||||
|
@ -194,6 +194,10 @@ class SubscribersServiceManager(ServiceManager, IClientHandler):
|
|||
client.login_fail(cid, 'Device not found')
|
||||
return False
|
||||
|
||||
if found_device.status == Device.Status.BANNED:
|
||||
client.login_fail(cid, 'Device banned')
|
||||
return False
|
||||
|
||||
if found_device.status == Device.Status.NOT_ACTIVE:
|
||||
found_device.status = Device.Status.ACTIVE
|
||||
check_user.save()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue