[UPDT] HORILLA LDAP: Updated the user name as email after importing the user
This commit is contained in:
@@ -139,7 +139,7 @@ class Command(BaseCommand):
|
|||||||
user = User.objects.get(
|
user = User.objects.get(
|
||||||
Q(username=email) | Q(username=user_id) | Q(email=email)
|
Q(username=email) | Q(username=user_id) | Q(email=email)
|
||||||
)
|
)
|
||||||
user.username = user_id
|
user.username = email
|
||||||
user.set_password(ldap_password) # Hash and store password securely
|
user.set_password(ldap_password) # Hash and store password securely
|
||||||
user.save()
|
user.save()
|
||||||
action = "Updated"
|
action = "Updated"
|
||||||
|
|||||||
Reference in New Issue
Block a user