mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
Fix user mail bug in user list function
This commit is contained in:
parent
44eca531a2
commit
f910ee2ea4
1 changed files with 4 additions and 3 deletions
|
@ -72,8 +72,9 @@ def user_list(fields=None, filter=None, limit=None, offset=None):
|
|||
entry = {
|
||||
'Username': user['uid'][0],
|
||||
'Fullname': user['cn'][0],
|
||||
'Mail': user['mail'][0]
|
||||
}
|
||||
if 'mail' in user.keys():
|
||||
entry['Mail'] = user['mail'][0]
|
||||
if len(user['mail']) > 1:
|
||||
entry['Mail Aliases'] = user['mail'][1:]
|
||||
if 'maildrop' in user:
|
||||
|
|
Loading…
Add table
Reference in a new issue