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