aboutsummaryrefslogtreecommitdiff
path: root/src/web/lib
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2018-04-04 23:24:54 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2018-04-04 23:24:54 +0200
commitef09843b60ee565d270cf9575a9cfb420dcf2a0f (patch)
tree22fc76776fa0e8ccf407e289a176268123ba294d /src/web/lib
parentTypo. (diff)
downloadnewspipe-ef09843b60ee565d270cf9575a9cfb420dcf2a0f.tar.gz
newspipe-ef09843b60ee565d270cf9575a9cfb420dcf2a0f.tar.bz2
newspipe-ef09843b60ee565d270cf9575a9cfb420dcf2a0f.zip
Removed email field.
Diffstat (limited to 'src/web/lib')
-rw-r--r--src/web/lib/user_utils.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/web/lib/user_utils.py b/src/web/lib/user_utils.py
index dfeb8dfa..f78a6ed6 100644
--- a/src/web/lib/user_utils.py
+++ b/src/web/lib/user_utils.py
@@ -5,19 +5,19 @@ import conf
from bootstrap import application
-def generate_confirmation_token(email):
+def generate_confirmation_token(nickname):
serializer = URLSafeTimedSerializer(application.config['SECRET_KEY'])
- return serializer.dumps(email, salt=application.config['SECURITY_PASSWORD_SALT'])
+ return serializer.dumps(nickname, salt=application.config['SECURITY_PASSWORD_SALT'])
def confirm_token(token):
serializer = URLSafeTimedSerializer(application.config['SECRET_KEY'])
try:
- email = serializer.loads(
+ nickname = serializer.loads(
token,
salt=application.config['SECURITY_PASSWORD_SALT'],
max_age=conf.TOKEN_VALIDITY_PERIOD
)
except:
return False
- return email
+ return nickname
bgstack15