From b486d40e1ca5faa6e126cbe5f4c6cb65cef20626 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 15 May 2014 07:17:21 +0200 Subject: removed debug line --- pyaggr3g470r/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyaggr3g470r/views.py') diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index ee610840..78523d56 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -782,12 +782,12 @@ def disable_user(user_id=None): """ user = User.query.filter(User.id == user_id).first() if user is not None: - if True: - user.activation_key = "" + if user.activation_key != "": # Send the confirmation email try: emails.new_account_activation(user) + user.activation_key = "" except Exception as e: flash(gettext('Problem while sending activation email') + ': ' + str(e), 'danger') -- cgit