cosmetic changes
This commit is contained in:
parent
9e47e8498f
commit
5fad468ea3
1 changed files with 2 additions and 2 deletions
|
@ -72,6 +72,7 @@ def checkin(clientid):
|
||||||
try:
|
try:
|
||||||
clientsdb = readclientsdb()
|
clientsdb = readclientsdb()
|
||||||
c_id = clientsdb[str(clientid)]
|
c_id = clientsdb[str(clientid)]
|
||||||
|
ioconfig.logger.info('client[{}]> checked in'.format(c_id))
|
||||||
return c_id
|
return c_id
|
||||||
except:
|
except:
|
||||||
ioconfig.logger.error('clients> user id: {} could not be checked.'.format(clientid))
|
ioconfig.logger.error('clients> user id: {} could not be checked.'.format(clientid))
|
||||||
|
@ -85,7 +86,6 @@ def validate(clientemail, password):
|
||||||
clientsdb = readclientsdb()
|
clientsdb = readclientsdb()
|
||||||
path = utils.get_path(clientsdb, clientemail)
|
path = utils.get_path(clientsdb, clientemail)
|
||||||
c_id = str(path[0])
|
c_id = str(path[0])
|
||||||
#ioconfig.logger.info('client[{}]> path={}'.format(c_id, str(path)))
|
|
||||||
except:
|
except:
|
||||||
ioconfig.logger.error('clients> {} was not found in the database!'.format(clientemail))
|
ioconfig.logger.error('clients> {} was not found in the database!'.format(clientemail))
|
||||||
#log bad ips here...
|
#log bad ips here...
|
||||||
|
@ -103,7 +103,7 @@ def validate(clientemail, password):
|
||||||
#3. generate vmlist to return the owned ids to the client.
|
#3. generate vmlist to return the owned ids to the client.
|
||||||
return clientvms(clientsdb[c_id])
|
return clientvms(clientsdb[c_id])
|
||||||
else:
|
else:
|
||||||
ioconfig.logger.warning('clients> {} access denied!'.format(clientemail))
|
ioconfig.logger.warning('client[{}]> {} access denied!'.format(c_id, clientemail))
|
||||||
#cant compare password
|
#cant compare password
|
||||||
#TODO: Log attempts and block.
|
#TODO: Log attempts and block.
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Reference in a new issue