Fix typo causing Intercom secure mode to fail.
parent
4a78e9e2dc
commit
a937b4f78b
|
@ -433,7 +433,7 @@
|
|||
<script id="IntercomSettingsScriptTag">
|
||||
var intercomSettings = {
|
||||
app_id: 'sajf131y',
|
||||
user_id: '{{ request.user.id }}',
|
||||
user_id: {{ request.user.id }},
|
||||
user_hash: '{{ request.user.id|intercom_sha_256 }}',
|
||||
email: '{{ request.user.email }}',
|
||||
created_at: {{ request.user.date_joined|date:"U" }},
|
||||
|
|
|
@ -7,4 +7,4 @@ register = template.Library()
|
|||
|
||||
@register.filter
|
||||
def intercom_sha_256(user_id):
|
||||
return hmac.new(INTERCOM_SECRET_KEY, user_id, digestmod=hashlib.sha256).hexdigest()
|
||||
return hmac.new(INTERCOM_SECRET_KEY, str(user_id), digestmod=hashlib.sha256).hexdigest()
|
||||
|
|
Loading…
Reference in New Issue