aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
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