simplifying user management
This commit is contained in:
parent
b9b2eb0781
commit
9c58388eb2
1 changed files with 5 additions and 3 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue