mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 09:24:21 +01:00
changing http returns for checkppolicy
This commit is contained in:
parent
8833fe6df6
commit
fdba64f9da
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user