Development
This commit is contained in:
parent
1a473296b7
commit
43c4cf380d
5 changed files with 71 additions and 62 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue