Skip to content

Commit

Permalink
Fixes logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
teleyinex committed Jan 18, 2019
1 parent 717a448 commit bfbe4f6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pybossa/view/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -696,10 +696,9 @@ def _handle_profile_update(user, update_form):
be updated.' % account['email_addr'])
flash(fls, 'info')
return True
else:
if domain in current_app.config.get('SPAM'):
fls = gettext('Use a valid email account')
flash(fls, 'info')
if acc_conf_dis is False and domain in current_app.config.get('SPAM'):
fls = gettext('Use a valid email account')
flash(fls, 'info')
return False
if acc_conf_dis:
user.email_addr = update_form.email_addr.data
Expand Down

0 comments on commit bfbe4f6

Please sign in to comment.