Init secure mode for Intercom.

master
Nick Sergeant 2013-05-08 17:44:11 -04:00
parent a9a7a63784
commit 4006f570c6
2 changed files with 5 additions and 1 deletions

View File

@ -79,3 +79,5 @@ RAVEN_CONFIG = {
MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + (
'raven.contrib.django.raven_compat.middleware.Sentry404CatchMiddleware',
)
INTERCOM_SECRET_KEY = ''

View File

@ -1,4 +1,4 @@
{% load snipt_tags %}
{% load snipt_tags intercom %}
<!DOCTYPE html>
<html lang="en" class="{% block html-class %}{% endblock %}">
@ -428,6 +428,8 @@
<script id="IntercomSettingsScriptTag">
var intercomSettings = {
app_id: 'sajf131y',
user_id: {{ request.user.id }},
user_hash: '{{ reuqest.user.id|intercom_sha_256 }}',
email: '{{ request.user.email }}',
created_at: {{ request.user.date_joined|date:"U" }},
custom_data: {