1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-11-22 09:24: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 """ """ 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

View File

@ -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>