1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-21 17:04:21 +01:00

disable min search lenght for admin search

This commit is contained in:
kakwa 2016-07-10 08:10:19 +02:00
parent c2f6b95fb0
commit f3fabe502e
2 changed files with 2 additions and 2 deletions

View File

@ -973,7 +973,7 @@ class LdapCherry(object):
""" search user page """
self._check_auth(must_admin=True)
is_admin = self._check_admin()
if searchstring is not None and len(searchstring) > 2:
if searchstring is not None:
res = self._search(searchstring)
else:
res = None

View File

@ -6,7 +6,7 @@
<form method='get' action='/searchadmin' role="form" class="form-inline" data-toggle="validator">
<div class="form-group">
<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 class="form-group">
<label for="submit">Submit</label>