Skip to content

Commit

Permalink
removed the print statement
Browse files Browse the repository at this point in the history
  • Loading branch information
CHRISTOPHERKADOGO committed Jul 12, 2024
1 parent e9358eb commit f2fb0cb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/controllers/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ def post(self):

validated_user_data, errors = user_schema.load(user_data)

if errors:
return dict(status="fail", message=errors), 400

email = validated_user_data.get('email', None)
print(email)

if not is_valid_email(email):
print(email)
return dict(status='fail', message=f'Invalid email address'), 400


Expand All @@ -64,8 +66,7 @@ def post(self):
template = "user/verify.html"
subject = "Please confirm your email"

if errors:
return dict(status="fail", message=errors), 400


# get the customer role
user_role = Role.find_first(name='customer')
Expand Down

0 comments on commit f2fb0cb

Please sign in to comment.