mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 08:33:43 +00:00
Add comment in create_user_backend about not needing to invite users first.
This commit is contained in:
@@ -1083,6 +1083,8 @@ def create_user_backend(request, user_profile, email=REQ, password=REQ,
|
||||
return json_error('Bad name or username')
|
||||
|
||||
# Check that the new user's email address belongs to the admin's realm
|
||||
# (Since this is an admin API, we don't require the user to have been
|
||||
# invited first.)
|
||||
realm = user_profile.realm
|
||||
domain = resolve_email_to_domain(email)
|
||||
if realm.domain != domain:
|
||||
|
||||
Reference in New Issue
Block a user