From bfbe4f60e7fe77637ec8a4d61a0766beb68ff27b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Lombra=C3=B1a=20Gonz=C3=A1lez?= Date: Fri, 18 Jan 2019 12:33:16 +0100 Subject: [PATCH] Fixes logic. --- pybossa/view/account.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pybossa/view/account.py b/pybossa/view/account.py index ab3f61a950..3cd7827041 100644 --- a/pybossa/view/account.py +++ b/pybossa/view/account.py @@ -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