Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
create_user: Improve comment about prereg_user handling.
Mateusz Manderaff01777139c7
diff --git a/zerver/actions/create_user.py b/zerver/actions/create_user.pyindex eaf06abf7f0..987947dd539 100644--- a/zerver/actions/create_user.py+++ b/zerver/actions/create_user.py@@ -235,9 +235,9 @@ def process_new_human_user(),)- # Revoke all preregistration users except prereg_user, and link prereg_user to- # the created user-+ # For the sake of tracking the history of UserProfiles,+ # we want to tie the newly created user to the PreregistrationUser+ # it was created from.if prereg_user is not None:prereg_user.status = confirmation_settings.STATUS_ACTIVEprereg_user.created_user = user_profile