mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 23:13:25 +00:00
Fix the fact that new auto-created MIT users are active.
(imported from commit 577f1a0165a56fc3cc1ed6f0a54f6c5f31345cc7)
This commit is contained in:
@@ -556,7 +556,8 @@ def create_mirrored_message_users(request, user_profile):
|
||||
# Create a user for the sender, if needed
|
||||
if 'email' in sender_data:
|
||||
sender = create_user_if_needed(user_profile.realm, sender_data['email'],
|
||||
sender_data['full_name'], sender_data['short_name'])
|
||||
sender_data['full_name'], sender_data['short_name'],
|
||||
active=False)
|
||||
else:
|
||||
sender = user_profile
|
||||
|
||||
@@ -564,7 +565,8 @@ def create_mirrored_message_users(request, user_profile):
|
||||
for recipient in huddle_recipients:
|
||||
create_user_if_needed(user_profile.realm, recipient,
|
||||
recipient.split('@')[0],
|
||||
recipient.split('@')[0])
|
||||
recipient.split('@')[0],
|
||||
active=False)
|
||||
|
||||
return (True, sender)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user