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