Make sms code task use a reference too

- makes the fire text callback behave in consistent way
This commit is contained in:
Martyn Inglis
2016-03-10 15:51:11 +00:00
parent 1f22f2b7cc
commit 2922712f0b
5 changed files with 42 additions and 27 deletions

View File

@@ -295,7 +295,9 @@ def send_email(service_id, notification_id, subject, from_address, encrypted_not
def send_sms_code(encrypted_verification):
verification_message = encryption.decrypt(encrypted_verification)
try:
firetext_client.send_sms(verification_message['to'], verification_message['secret_code'])
firetext_client.send_sms(
verification_message['to'], verification_message['secret_code'], 'send-sms-code'
)
except FiretextClientException as e:
current_app.logger.exception(e)