mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 00:20:43 -04:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user