Intercom SHA tag and padding.:

master
Nick Sergeant 2014-08-18 12:01:33 -04:00
parent e594401130
commit 775a28f0f3
4 changed files with 13 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -2940,7 +2940,7 @@ a.snipt-promo {
display: block;
font: bold 20px Helvetica;
margin-top: 30px;
padding: 25px 15px;
padding: 25px 15px 25px 28px;
text-decoration: none;
text-shadow: 0 1px 0 #448944;

View File

@ -0,0 +1,10 @@
from django import template
from settings_local import INTERCOM_SECRET_KEY
import hmac, hashlib
register = template.Library()
@register.filter
def intercom_sha_256(user_id):
return hmac.new(INTERCOM_SECRET_KEY, str(user_id), digestmod=hashlib.sha256).hexdigest()