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:
parent
c2f6b95fb0
commit
f3fabe502e
@ -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
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user