diff --git a/backend/open_webui/utils/auth.py b/backend/open_webui/utils/auth.py index 1a78f3143f..a7610b5cca 100644 --- a/backend/open_webui/utils/auth.py +++ b/backend/open_webui/utils/auth.py @@ -143,7 +143,7 @@ def get_license_data(app, key): pn, pt = nt(pb) data = json.loads(aesgcm.decrypt(pn, pt, None).decode()) - if not data.get('exp') and data.get('exp') < datetime.now().date(): + if not data.get('exp') or data.get('exp') < datetime.now().date(): return False data_handler(data)