diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-19 07:28:46 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-19 07:28:46 +0200 |
commit | eafbb46586de90abd4f5b9881c68e57f64768d4d (patch) | |
tree | 3afd0de801083bccaafabfe95cfe3cba4d3c3ed1 /pyaggr3g470r/views.py | |
parent | Updated about page. (diff) | |
parent | Updated translations. (diff) | |
download | newspipe-eafbb46586de90abd4f5b9881c68e57f64768d4d.tar.gz newspipe-eafbb46586de90abd4f5b9881c68e57f64768d4d.tar.bz2 newspipe-eafbb46586de90abd4f5b9881c68e57f64768d4d.zip |
Merge branch 'master' of bitbucket.org:cedricbonhomme/pyaggr3g470r
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index abc7a68a..a9c588a2 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -792,16 +792,16 @@ def disable_user(user_id=None): try: emails.new_account_activation(user) user.activation_key = "" + flash(gettext('Account of the user') + ' ' + user.nickname + ' ' + gettext('successfully activated.'), 'success') except Exception as e: flash(gettext('Problem while sending activation email') + ': ' + str(e), 'danger') - flash('Account of the user "' + user.nickname + '" successfully activated.', 'success') else: import random, base64, hashlib user.activation_key = base64.b64encode(hashlib.sha512( str(random.getrandbits(256)) ).digest(), random.choice(['rA','aZ','gQ','hH','hG','aR','DD'])).rstrip('==') - flash('Account of the user "' + user.nickname + '" successfully disabled.', 'success') + flash(gettext('Account of the user') + ' ' + user.nickname + ' ' + gettext('successfully disabled.'), 'success') db.session.commit() else: - flash('This user does not exist.', 'danger') + flash(gettext('This user does not exist.'), 'danger') return redirect(redirect_url()) |