fix authentication failure when no groups

This commit is contained in:
Adarnof 2016-03-29 14:23:54 -04:00
parent 38c0e8896a
commit 58c02c19a8

View File

@ -500,7 +500,10 @@ def do_main_program():
uid, upwhash, ugroups = res
groups = ugroups.split(',')
if ugroups:
groups = ugroups.split(',')
else:
groups = []
if allianceauth_check_hash(pw, upwhash):
info('User authenticated: "%s" (%d)', name, uid + cfg.user.id_offset)