Commit f539967a authored by PCoder's avatar PCoder

Set in_ldap even when resetting dummy credential

parent b076debf
......@@ -233,8 +233,6 @@ class CustomUser(AbstractBaseUser, PermissionsMixin):
ldap_manager.create_user(self.username, password=password,
firstname=first_name, lastname=last_name,
self.in_ldap = True
# User exists already in LDAP, but with a dummy credential
# We are here implies that the user has successfully
......@@ -244,6 +242,8 @@ class CustomUser(AbstractBaseUser, PermissionsMixin):
# was set to a dummy value while migrating users from Django to
ldap_manager.change_password(self.username, password)
self.in_ldap = True
def __str__(self): # __unicode__ on Python 2
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment