Skip to content
Snippets Groups Projects
Verified Commit b4fea241 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Do not handle password resets and changes for non-LDAP users

parent c9ac3476
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,10 @@ def ldap_change_password(request, user, **kwargs):
user.ldap_user = _LDAPUser(LDAPBackend(), user=user)
if not user.ldap_user.dn:
# The user is not linked to an LDAP user, so we do not handle the password change
return
# Get old and new password from submitted form
# We rely on allauth already having validated the form before emitting the signal
old = request.POST.get("oldpassword", None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment