Skip to content

Commit

Permalink
Merge pull request #31 from brighthive/feat/HIVE-899/check-for-null-e…
Browse files Browse the repository at this point in the history
…mail-address

feat: HIVE-899 fix validation on email address field.
  • Loading branch information
gregmundy authored Jul 31, 2020
2 parents 801f7ec + 4eb1638 commit a66c776
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mci/api/v1_0_0/user_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def create_new_user(self, user_object):
new_user.middle_name = user['middle_name'].title()
if 'last_name' in user.keys():
new_user.last_name = user['last_name'].title()
if 'email_address' in user.keys():
if 'email_address' in user.keys() and user['email_address'] is not None:
if validate_email(user['email_address']):
new_user.email_address = user['email_address']
else:
Expand Down

0 comments on commit a66c776

Please sign in to comment.