mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-19 07:37:03 +00:00
hack to avoid Fernet
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import base64
|
||||
import json
|
||||
import os
|
||||
# from cryptography.fernet import Fernet # fails after server upgrade due to wsgi bug
|
||||
from troggle.core.fernet import Fernet
|
||||
|
||||
#from cryptography.fernet import Fernet # fails after server upgrade due to wsgi bug
|
||||
def Fernet(k):
|
||||
pass
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from django.conf import settings
|
||||
@@ -89,6 +91,9 @@ def load_users():
|
||||
"""
|
||||
PARSER_USERS = "_users"
|
||||
DataIssue.objects.filter(parser=PARSER_USERS).delete()
|
||||
|
||||
# because we can't use Fernet currently
|
||||
return False
|
||||
|
||||
f = get_encryptor()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user