[UPDT] HORILLA LDAP: Updated the user name as email after importing the user

This commit is contained in:
Horilla
2025-03-17 16:54:14 +05:30
parent a879d77109
commit fa4f2bceac

View File

@@ -139,7 +139,7 @@ class Command(BaseCommand):
user = User.objects.get(
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.save()
action = "Updated"