mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 20:40:17 +02:00
Added details to syncgroup cache
This commit is contained in:
parent
1e42618f05
commit
e8f788c278
@ -77,11 +77,15 @@ class OpenfireManager:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def update_user_groups(username, password, groups):
|
def update_user_groups(username, password, groups):
|
||||||
api = UserService(settings.OPENFIRE_ADDRESS, settings.OPENFIRE_SECRET_KEY)
|
try:
|
||||||
api.update_user(username, password, "", "", groups)
|
api = UserService(settings.OPENFIRE_ADDRESS, settings.OPENFIRE_SECRET_KEY)
|
||||||
|
api.update_user(username, password, "", "", groups)
|
||||||
|
except exception.HTTPException as e:
|
||||||
|
print e
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def delete_user_groups(username, groups):
|
def delete_user_groups(username, groups):
|
||||||
|
|
||||||
api = UserService(settings.OPENFIRE_ADDRESS, settings.OPENFIRE_SECRET_KEY)
|
api = UserService(settings.OPENFIRE_ADDRESS, settings.OPENFIRE_SECRET_KEY)
|
||||||
api.delete_group(username, groups)
|
api.delete_group(username, groups)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user