diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-15 07:17:21 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-15 07:17:21 +0200 |
commit | b486d40e1ca5faa6e126cbe5f4c6cb65cef20626 (patch) | |
tree | 792abd5bf36d19f77da687c1773a288235d5a0b7 /pyaggr3g470r/views.py | |
parent | Updated template (diff) | |
download | newspipe-b486d40e1ca5faa6e126cbe5f4c6cb65cef20626.tar.gz newspipe-b486d40e1ca5faa6e126cbe5f4c6cb65cef20626.tar.bz2 newspipe-b486d40e1ca5faa6e126cbe5f4c6cb65cef20626.zip |
removed debug line
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
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') |