zulip/zerver/views/development
Mateusz Mandera 7b795b6338 registration: Change create_preregistration_user to take realm as arg.
create_preregistration_user is a footgun, because it takes the realm
from the request. The calling code is supposed to validate that
registration for the realm is allowed
first, but can sometimes do that on "realm" taken from something else
than the request - and later on calls create_preregistration_user, thus
leading to prereg user creation on unvalidated request.realm.

It's safer, and makes more sense, for this function to take the intended
realm as argument, instead of taking the entire request. It follows that
the same should be done for prepare_activation_url.
2022-02-25 14:02:24 -08:00
..
__init__.py
cache.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
camo.py thumbnail: Remove unused is_camo_url parameter. 2021-08-19 01:51:37 -07:00
dev_login.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
email_log.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
integrations.py backend: Add request as parameter to json_success. 2022-02-04 15:16:56 -08:00
registration.py registration: Change create_preregistration_user to take realm as arg. 2022-02-25 14:02:24 -08:00