This commit is contained in:
Timothy Jaeryang Baek
2026-03-26 17:38:23 -05:00
parent 0842acad53
commit 16335f866e
+8 -2
View File
@@ -143,8 +143,14 @@ def get_license_data(app, key):
pn, pt = nt(pb)
data = json.loads(aesgcm.decrypt(pn, pt, None).decode())
if not data.get('exp') or data.get('exp') < datetime.now().date():
return False
exp = data.get('exp')
if exp:
if isinstance(exp, str):
from datetime import date
exp = date.fromisoformat(exp)
if exp < datetime.now().date():
return False
data_handler(data)
return True