@@ -213,14 +213,14 @@ class mailcnf_user(ncauth_base):
...
@@ -213,14 +213,14 @@ class mailcnf_user(ncauth_base):
delstring=" and deleted='0' "
delstring=" and deleted='0' "
ifdomain_id=='all':
ifdomain_id=='all':
ifguid=='all':
ifguid=='all':
query=" SELECT * FROM `virtual_users`"
query=" SELECT id,domain_id,group_id,password,password_alt,email,sent_mail,quota,modified,active,deleted FROM `virtual_users`"
else:
else:
query=" SELECT * FROM `virtual_users` WHERE group_id in ( "+guid+" ) "+delstring
query=" SELECT id,domain_id,group_id,password,password_alt,email,sent_mail,quota,modified,active,deleted FROM `virtual_users` WHERE group_id in ( "+guid+" ) "+delstring
else:
else:
ifid=='all':
ifid=='all':
query=" SELECT * FROM `virtual_users` WHERE `domain_id`= "+domain_id+" AND group_id in ( "+guid+" ) "+delstring
query=" SELECT id,domain_id,group_id,password,password_alt,email,sent_mail,quota,modified,active,deleted FROM `virtual_users` WHERE `domain_id`= "+domain_id+" AND group_id in ( "+guid+" ) "+delstring
else:
else:
query=" SELECT * FROM `virtual_users` WHERE `id`='"+id+"' "+delstring
query=" SELECT id,domain_id,group_id,password,password_alt,email,sent_mail,quota,modified,active,deleted FROM `virtual_users` WHERE `id`='"+id+"' "+delstring
try:
try:
db_config=read_db_config()
db_config=read_db_config()
conn=MySQLConnection(**db_config)
conn=MySQLConnection(**db_config)
...
@@ -247,7 +247,7 @@ class mailcnf_user(ncauth_base):
...
@@ -247,7 +247,7 @@ class mailcnf_user(ncauth_base):
defedit_virtual_users_by_id(self,id,uid):
defedit_virtual_users_by_id(self,id,uid):
query=" SELECT * FROM `virtual_users` WHERE `id`='"+str(id)+"'"
query=" SELECT id,domain_id,group_id,password,password_alt,email,sent_mail,quota,modified,active,deleted FROM `virtual_users` WHERE `id`='"+str(id)+"'"