[fixes] [minor]
This commit is contained in:
parent
ef0c6b44f7
commit
5f1226683b
2 changed files with 1 additions and 5 deletions
|
|
@ -122,7 +122,7 @@ def check_bulk_limit(recipients):
|
|||
|
||||
def add_unsubscribe_link(message, email, reference_doctype, reference_name, unsubscribe_url, unsubscribe_message):
|
||||
unsubscribe_link = """<div style="padding: 7px; text-align: center; color: #8D99A6;">
|
||||
{email} <a href="{unsubscribe_url}" style="color: #8D99A6; text-decoration: underline;
|
||||
{email}. <a href="{unsubscribe_url}" style="color: #8D99A6; text-decoration: underline;
|
||||
target="_blank">{unsubscribe_message}.
|
||||
</a>
|
||||
</div>""".format(unsubscribe_url = unsubscribe_url,
|
||||
|
|
|
|||
|
|
@ -16,8 +16,6 @@ def get_signed_params(params):
|
|||
if not isinstance(params, basestring):
|
||||
params = urllib.urlencode(params)
|
||||
|
||||
print params
|
||||
|
||||
signature = hmac.new(params)
|
||||
signature.update(get_secret())
|
||||
return params + "&_signature=" + signature.hexdigest()
|
||||
|
|
@ -34,8 +32,6 @@ def verify_request():
|
|||
|
||||
given_signature = hmac.new(params.encode("utf-8"))
|
||||
|
||||
print params
|
||||
|
||||
given_signature.update(get_secret())
|
||||
valid = signature == given_signature.hexdigest()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue