aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-15 17:37:48 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-05-15 17:37:48 +0200
commited1cc0c3944aa27fd889b24beae0b6bebb80241d (patch)
tree7488afcc850a4ef24b7db5e969bd9a28056f08c9 /pyaggr3g470r/views.py
parentTypo. (diff)
downloadnewspipe-ed1cc0c3944aa27fd889b24beae0b6bebb80241d.tar.gz
newspipe-ed1cc0c3944aa27fd889b24beae0b6bebb80241d.tar.bz2
newspipe-ed1cc0c3944aa27fd889b24beae0b6bebb80241d.zip
Fix.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index a8d6da51..6fd06560 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -794,7 +794,7 @@ def disable_user(user_id=None):
flash('Account of the user "' + user.nickname + '" successfully activated.', 'success')
else:
import random, base64, hashlib
- user.apikey = base64.b64encode(hashlib.sha512( str(random.getrandbits(256)) ).digest(),
+ 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')
db.session.commit()
bgstack15