Intercom SHA tag and padding.:
parent
e594401130
commit
775a28f0f3
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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;
|
||||
|
||||
|
|
|
@ -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()
|
Loading…
Reference in New Issue