2
0
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:
2025-08-28 16:03:43 +03:00
parent eec9760b6c
commit d24c992482
2 changed files with 7 additions and 230 deletions

View File

@@ -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()