Development

This commit is contained in:
Matthew Grotke 2026-06-08 00:28:33 -04:00
parent 1a473296b7
commit 43c4cf380d
5 changed files with 71 additions and 62 deletions

View file

@ -80,7 +80,7 @@ def _verify_credential(username, password, vlan_name):
return False
if row is None:
return False
if row['valid_for'] is not None and (row['date_set'] + row['valid_for']) < int(time.time()):
if row['session_seconds'] > 0 and (row['date_set'] + row['session_seconds']) < int(time.time()):
return False
if row['digest_type'] == DIGEST_HASH_BCRYPT:
try: