Skip to content

Commit cc8b505

Browse files
committed
refac
1 parent d8fa0f4 commit cc8b505

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/open_webui/utils/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def nt(b):
143143
pn, pt = nt(pb)
144144

145145
data = json.loads(aesgcm.decrypt(pn, pt, None).decode())
146-
if not data.get('exp') and data.get('exp') < datetime.now().date():
146+
if not data.get('exp') or data.get('exp') < datetime.now().date():
147147
return False
148148

149149
data_handler(data)

0 commit comments

Comments
 (0)