mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
random_api_key, the function we use to generate random tokens for API keys, has been moved to zerver/lib/utils.py because it's used in more parts of the codebase (apart from user creation), and having it in zerver/lib/create_user.py was prone to cyclic dependencies. The function has also been renamed to generate_api_key to have an imperative name, that makes clearer what it does.
5.5 KiB
5.5 KiB