mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +00:00
[schema] Add support for bot users
(imported from commit 634a8211b41fd0040c95b51b96a88d3517fa8cf4)
This commit is contained in:
@@ -36,8 +36,8 @@ def bulk_create_users(realms, users_raw):
|
||||
for (email, full_name, short_name, active) in users:
|
||||
domain = email.split('@')[1]
|
||||
profile = create_user_profile(realms[domain], email,
|
||||
initial_password(email), active,
|
||||
full_name, short_name)
|
||||
initial_password(email), active, False,
|
||||
full_name, short_name, None)
|
||||
profiles_to_create.append(profile)
|
||||
UserProfile.objects.bulk_create(profiles_to_create)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user