Skip to content

Commit

Permalink
Merge pull request #136 from pmclanahan/add-sms-messages-1169026
Browse files Browse the repository at this point in the history
Bug 1169026: Add SMS messages for spring campaign.
  • Loading branch information
jgmize committed May 28, 2015
2 parents b4c375c + ae85b44 commit d9a3be6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions news/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@
CONFIRMATION_MESSAGE = "confirmation_email"

SMS_MESSAGES = {
'SMS_Android': 'MTo3ODow'
'SMS_Android': 'MTo3ODow',
'android': 'NTo3ODow',
'ios': 'Njo3ODow',
'mobile': 'Nzo3ODow',
}
PHONEBOOK_GROUPS = (
'SYSTEMS_ADMINISTRATION',
Expand Down Expand Up @@ -670,7 +673,7 @@ def confirm_user(token, user_data):
'is already confirmed' % token)
return

if not 'email' in user_data or not user_data['email']:
if not ('email' in user_data and user_data['email']):
raise BasketError('token has no email in ET')

# Add user's token to the confirmation database at ET. A nightly
Expand Down

0 comments on commit d9a3be6

Please sign in to comment.