Send Zulip notifications when users fill out our interest form.

(imported from commit 2db4b29df8ac2c4cf1929a3df3015809f3faf895)
This commit is contained in:
Tim Abbott 2014-02-04 16:55:49 -05:00
parent 02d69f18ac
commit d595714a1c
1 changed files with 6 additions and 0 deletions

View File

@ -226,6 +226,12 @@ Currently using: %s""" % (name, email, company, count, product,)
# register. Send them a registration link.
send_registration_completion_email(email, request)
return json_error("Your group is already signed up!", status=403)
else:
internal_send_message(
settings.NOTIFICATION_BOT, "stream", "interest", company,
"`%s <%s>` at %s is interested in switching from `%s` (%s users)" % (
name, email, company, product, count)
)
return json_success()