mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-06 15:16:20 +01:00
Corrected authenticator group return
It works.
This commit is contained in:
1
thirdparty/Mumble/.gitignore
vendored
Normal file
1
thirdparty/Mumble/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
authenticator.ini
|
||||
6
thirdparty/Mumble/authenticator.py
vendored
6
thirdparty/Mumble/authenticator.py
vendored
@@ -499,11 +499,13 @@ def do_main_program():
|
||||
return (FALL_THROUGH, None, None)
|
||||
|
||||
uid, upwhash, ugroups = res
|
||||
|
||||
groups = ugroups.split(',')
|
||||
|
||||
if allianceauth_check_hash(pw, upwhash):
|
||||
info('User authenticated: "%s" (%d)', name, uid + cfg.user.id_offset)
|
||||
debug('Group memberships: %s', str(ugroups))
|
||||
return (uid + cfg.user.id_offset, entity_decode(name), ugroups)
|
||||
debug('Group memberships: %s', str(groups))
|
||||
return (uid + cfg.user.id_offset, entity_decode(name), groups)
|
||||
|
||||
info('Failed authentication attempt for user: "%s" (%d)', name, uid + cfg.user.id_offset)
|
||||
return (AUTH_REFUSED, None, None)
|
||||
|
||||
Reference in New Issue
Block a user