Merge pull request #275 from alphagov/fix-auth-bug

This pull request fixes a bug in authentication.
This commit is contained in:
Rebecca Law
2016-04-29 14:52:20 +01:00
3 changed files with 25 additions and 2 deletions

View File

@@ -162,7 +162,7 @@ def process_job(job_id):
if template.template_type == 'sms':
send_sms.apply_async((
str(job.service_id),
str(create_uuid()),
create_uuid(),
encrypted,
datetime.utcnow().strftime(DATETIME_FORMAT)),
queue='bulk-sms'
@@ -171,7 +171,7 @@ def process_job(job_id):
if template.template_type == 'email':
send_email.apply_async((
str(job.service_id),
str(create_uuid()),
create_uuid(),
'"{}" <{}@{}>'.format(
service.name,
service.email_from,