add check function for logged-in clients
This commit is contained in:
parent
75fee82763
commit
857465ce71
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue