simplifying user management

This commit is contained in:
deflax 2016-10-17 12:25:17 +03:00
parent b9b2eb0781
commit 9c58388eb2

View file

@ -45,7 +45,7 @@ def inventory(clientid):
email = user['email'] email = user['email']
response = {} response = {}
for vmid,data in user.items() for vmid,data in user.items():
response[vmid] = data response[vmid] = data
response.pop('id') response.pop('id')
response.pop('email') response.pop('email')
@ -93,8 +93,10 @@ def writeclientsdb(clientsdb):
dbw.close() dbw.close()
if __name__ == '__main__' if __name__ == '__main__':
setencpasswd('fqdn', '123456') inventory(1)
print('---')
inventory(2)
#def validate(clientemail, password): #def validate(clientemail, password):