Also check user before password reset
This commit is contained in:
parent
a5e91ffda2
commit
bdb57221e5
2 changed files with 26 additions and 19 deletions
|
|
@ -176,6 +176,7 @@ class ResetPassword(View):
|
|||
ldap_manager = LdapManager()
|
||||
user_exists, entries = ldap_manager.check_user_exists(
|
||||
uid=user,
|
||||
search_base=settings.ENTIRE_SEARCH_BASE,
|
||||
attributes=['uid', 'givenName', 'sn', 'mail']
|
||||
)
|
||||
if user_exists:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue