mirror of
https://github.com/kakwa/ldapcherry
synced 2024-11-22 01:14:21 +01:00
disable min search lenght for admin search
This commit is contained in:
parent
c2f6b95fb0
commit
f3fabe502e
@ -973,7 +973,7 @@ class LdapCherry(object):
|
|||||||
""" search user page """
|
""" search user page """
|
||||||
self._check_auth(must_admin=True)
|
self._check_auth(must_admin=True)
|
||||||
is_admin = self._check_admin()
|
is_admin = self._check_admin()
|
||||||
if searchstring is not None and len(searchstring) > 2:
|
if searchstring is not None:
|
||||||
res = self._search(searchstring)
|
res = self._search(searchstring)
|
||||||
else:
|
else:
|
||||||
res = None
|
res = None
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<form method='get' action='/searchadmin' role="form" class="form-inline" data-toggle="validator">
|
<form method='get' action='/searchadmin' role="form" class="form-inline" data-toggle="validator">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="searchstring">Search user to modify/delete</label>
|
<label for="searchstring">Search user to modify/delete</label>
|
||||||
<input type="text" class="form-control" data-minlength="3" data-error="Too short" id="searchstring" name="searchstring" placeholder="Search User" required>
|
<input type="text" class="form-control" id="searchstring" name="searchstring" placeholder="Search User">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="submit">Submit</label>
|
<label for="submit">Submit</label>
|
||||||
|
Loading…
Reference in New Issue
Block a user