108536490: Adding the login manager and csrf token.

Still need to figure out how to override the load_user method, currently it is not working.
This commit is contained in:
Rebecca Law
2015-11-27 16:25:56 +00:00
parent 7f96ef5a25
commit 48b7a7dc37
12 changed files with 130 additions and 27 deletions

View File

@@ -3,5 +3,5 @@ from flask import current_app
def encrypt(value):
key = current_app.config['SECRET_KEY']
key = current_app.config['PASS_SECRET_KEY']
return hashlib.sha256((key + value).encode('UTF-8')).hexdigest()