diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-15 17:37:48 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-15 17:37:48 +0200 |
commit | ed1cc0c3944aa27fd889b24beae0b6bebb80241d (patch) | |
tree | 7488afcc850a4ef24b7db5e969bd9a28056f08c9 /pyaggr3g470r/views.py | |
parent | Typo. (diff) | |
download | newspipe-ed1cc0c3944aa27fd889b24beae0b6bebb80241d.tar.gz newspipe-ed1cc0c3944aa27fd889b24beae0b6bebb80241d.tar.bz2 newspipe-ed1cc0c3944aa27fd889b24beae0b6bebb80241d.zip |
Fix.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 2 |
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() |