1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-05-30 23:58:05 +02:00

changing http returns for checkppolicy

This commit is contained in:
kakwa 2015-11-02 23:16:26 +01:00
parent 8833fe6df6
commit fdba64f9da

View File

@ -906,7 +906,7 @@ class LdapCherry(object):
""" search user page """
keys = params.keys()
if len(keys) != 1:
cherrypy.response.status = 403
cherrypy.response.status = 400
return "bad argument"
password = params[keys[0]]
self._check_auth(must_admin=False)
@ -915,7 +915,7 @@ class LdapCherry(object):
if ret['match']:
cherrypy.response.status = 200
else:
cherrypy.response.status = 400
cherrypy.response.status = 200
return json.dumps(ret, separators=(',', ':'))
@cherrypy.expose