diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-18 09:04:13 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-02-18 09:04:13 +0100 |
commit | 824b5044eb22a433d966dd94f87a3e62c540f66f (patch) | |
tree | 2016b4dcf6ee30f859434bca5820ea1ee52e9732 /src | |
parent | New management of the token for the account confirmation. (diff) | |
download | newspipe-824b5044eb22a433d966dd94f87a3e62c540f66f.tar.gz newspipe-824b5044eb22a433d966dd94f87a3e62c540f66f.tar.bz2 newspipe-824b5044eb22a433d966dd94f87a3e62c540f66f.zip |
app -> application
Diffstat (limited to 'src')
-rw-r--r-- | src/web/lib/user_utils.py | 8 |
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: |