mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 05:23:35 +00:00
Add notifications on new logins to Zulip.
This adds helpful email notifications for users who just logged into a Zulip server, as a security protection against accounts being hacked. Text tweaked by tabbott. Fixes #2182.
This commit is contained in:
@@ -177,6 +177,12 @@ class TemplateTestCase(ZulipTestCase):
|
||||
messages=[dict(header='Header')],
|
||||
new_streams=dict(html=''),
|
||||
data=dict(title='Title'),
|
||||
device_info={"device_browser": "Chrome",
|
||||
"device_os": "Windows",
|
||||
"device_ip": "127.0.0.1",
|
||||
"login_time": "9:33am NewYork, NewYork",
|
||||
},
|
||||
zulip_support="zulip-admin@example.com",
|
||||
)
|
||||
|
||||
context.update(kwargs)
|
||||
|
||||
Reference in New Issue
Block a user