add check function for logged-in clients

This commit is contained in:
deflax 2016-05-21 18:59:57 +03:00
parent 75fee82763
commit 857465ce71
2 changed files with 2 additions and 2 deletions

View file

@ -72,7 +72,7 @@ def checkin(clientid):
try:
clientsdb = readclientsdb()
c_id = clientsdb[str(clientid)]
return clientvms(clientsdb[c_id])
return c_id
except:
ioconfig.logger.error('clients> user id: {} could not be checked.'.format(clientid))
return None

View file

@ -246,7 +246,7 @@ res_validate = ValidateResource()
api.add_route('/validate', res_validate)
res_checkin = CheckInResource()
api.add_route('checkin', res_checkin)
api.add_route('/checkin', res_checkin)
res_create = CreateResource()
api.add_route('/create', res_create)