zulip/zerver
Shubham Padia feb2cdf378 onboarding: Change logic for preventing new login emails for a new user.
Issue: When you created a new organization with /new, the "new login"
emails were emailed. We previously had a hack of adding the
.just_registered property to the user Python object to attempt to
prevent the emails, and checking that in zerver/signals.py. This
commit gets rid of the .just_registered check.
Instead of the .just_registered check, this checks if the user has
joined more than a minute before.
A test test_dont_send_login_emails_for_new_user_registration_logins
already exists.

Tweaked by tabbott to introduce the constant JUST_CREATED_THRESHOLD.

Fixes #10179.
2018-08-13 10:16:41 -07:00
..
data_import slack import: Fix computation of owner email for uploaded files. 2018-08-10 16:20:36 -07:00
lib Extract a zephyr.py library. 2018-08-11 14:51:26 -07:00
management models: Add new UserMessage flag active_mobile_push_notification. 2018-08-01 16:51:56 -07:00
migrations migrations: Set initial value for is_private flags. 2018-08-09 16:09:44 -07:00
openapi api docs: Create the NonExistingStreamError schema definition. 2018-08-08 09:29:27 -07:00
templatetags render_markdown_path: Refactor pure_markdown rendering logic. 2018-08-09 14:34:52 -07:00
tests onboarding: Change logic for preventing new login emails for a new user. 2018-08-13 10:16:41 -07:00
tornado event_queue: Stop mocking push notifications in most tests. 2018-08-10 13:58:39 -07:00
views onboarding: Change logic for preventing new login emails for a new user. 2018-08-13 10:16:41 -07:00
webhooks integrations: Fix typo in IFTTT doc. 2018-08-10 14:23:29 -07:00
worker push notifications: Add support for removing GCM push notifications. 2018-08-10 13:58:39 -07:00
__init__.py
apps.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
context_processors.py settings: Enable custom profile fields in production. 2018-07-27 12:09:56 -07:00
decorator.py decorator: Fix error message for accessing deactivated accounts. 2018-08-09 15:58:31 -07:00
filters.py zerver: Use Python 3 syntax for typing. 2017-11-28 16:49:36 -08:00
forms.py forms: Fix accounts listed in password_reset email to active accounts. 2018-08-04 09:16:19 -07:00
logging_handlers.py bugdown: Improve exception handler for BugdownRenderingException. 2018-07-26 09:27:55 -07:00
middleware.py zerver: Change use of typing.Text to str. 2018-05-12 15:22:39 -07:00
models.py billing: Rename RealmAuditLog.REALM_PLAN_QUANTITY_RESET. 2018-08-10 15:54:31 -07:00
signals.py onboarding: Change logic for preventing new login emails for a new user. 2018-08-13 10:16:41 -07:00
static_header.txt