aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 78468379..d5c3da22 100644
--- a/src/web/lib/user_utils.py
+++ b/src/web/lib/user_utils.py
@@ -6,16 +6,16 @@ from bootstrap import application
def generate_confirmation_token(email):
- serializer = URLSafeTimedSerializer(app.config['SECRET_KEY'])
- return serializer.dumps(email, salt=app.config['SECURITY_PASSWORD_SALT'])
+ serializer = URLSafeTimedSerializer(application.config['SECRET_KEY'])
+ return serializer.dumps(email, salt=application.config['SECURITY_PASSWORD_SALT'])
def confirm_token(token, expiration=3600):
- serializer = URLSafeTimedSerializer(app.config['SECRET_KEY'])
+ serializer = URLSafeTimedSerializer(application.config['SECRET_KEY'])
try:
email = serializer.loads(
token,
- salt=app.config['SECURITY_PASSWORD_SALT'],
+ salt=application.config['SECURITY_PASSWORD_SALT'],
max_age=expiration
)
except:
bgstack15